I've run into a new error with this DB lookup taglib. So much for being
simple. Here's the output from the error log:
-----------------start cut--------------
Script:
1 package
Apache::AxKit::Language::XSP::ROOT::home::eturner2::public_axkit::webdev
::people1_2exsp;
2 use Apache;
3 use Apache::Constants qw(:common);
4 use XML::LibXML;
5 Apache::AxKit::Language::XSP::Page->import( qw(__mk_text_node
__mk_comment_node __mk_ns_element_node __mk_element_node) );#initialize
xsp namespace
6 #initialize xsp namespace
7
8
@Apache::AxKit::Language::XSP::ROOT::home::eturner2::public_axkit::webde
v::people1_2exsp::ISA = ('Apache::AxKit::Language::XSP::Page');
9 sub xml_generator {
10 my $class = shift;
11 my ($r, $cgi, $document, $parent) = @_;
12
13 $parent = __mk_element_node($document, $parent, q|data|);
14 $parent = __mk_element_node($document, $parent, q|title|);
15 $parent = __mk_element_node($document, $parent, q|a|);
16 $parent->setAttribute(q|name|,q|title|);
17 $parent = $parent->getParentNode;
18 __mk_text_node($document, $parent, q|My People Search|);
19 $parent = $parent->getParentNode;
20 $parent = __mk_element_node($document, $parent, q|time|);
21 __mk_text_node($document, $parent, "" . do {my ($_format);$_format =
q|%H:%M:%S|;AxKit::XSP::Util::get_date($_format)}); # non xsp tag
22 $parent = $parent->getParentNode;
23 $parent = __mk_element_node($document, $parent, q|people|);
24 $_args{report} ||= [];
25 my $href = {};
26 my %h = ('netid','eturner2');
27 while (my ($key,$value) = each %h){
28 last if $href->{$key};
29 $href->{$key} = $value;
30 }
31 $_args{report} = $href;
32 ;
33 $parent = $parent->getParentNode;
34 $parent = $parent->getParentNode;
35
36 return OK;
37 }
38
[Thu Jun 5 15:38:00 2003] [warn] [client 129.74.6.212] [AxKit] Caught
an exception
[Thu Jun 5 15:38:00 2003] [error] [client 129.74.6.212] [AxKit] [Error]
Compilation failed: Global symbol "%_args" requires explicit package
name at (eval 82) line 24.
Global symbol "%_args" requires explicit package name at (eval 82) line
31.
[Thu Jun 5 15:38:00 2003] [error] [client 129.74.6.212] [AxKit] From:
/usr/lib/perl5/site_perl/5.8.0/Error.pm : 148
[Thu Jun 5 15:38:00 2003] [error] [client 129.74.6.212] [AxKit]
[Backtrace] Compilation failed: Global symbol "%_args" requires explicit
package name at (eval 82) line 24.
------------end cut--------------
Here's the relevant XSP file:
<?xml-stylesheet href="NULL" type="application/x-xsp"?>
<?xml-stylesheet href="people.xsl" type="text/xsl" ?>
<?xml-stylesheet href="as_html.xsl" type="text/xsl" ?>
<xsp:page
xmlns:xsp =
"http://www.apache.org/1999/XSP/Core"
xmlns:util =
"http://apache.org/xsp/util/v1"
xmlns:people= "http://eeit.nd.edu/PeopleTaglib/v1"
>
<data>
<title><a name="title"/>My People Search</title>
<time>
<util:time format="%H:%M:%S" />
</time>
<people>
<people:report netid="eturner2" />
</people>
</data>
</xsp:page>
I saw some previous emails covering the same type of error, but none of
those solutions seemed to help my cause. Any ideas?
Scott Turner