I am getting a syntax error I do not understand.
Copying from a taglib I built (that works), I created a
new taglib. When running the page the taglib is on I get
A syntax error:
[Wed Aug 28 11:24:39 2002] [error] [client 10.10.40.27]
[AxKit] [Error] Compilation failed: syntax error at
(eval 43) line 21, near "})"
The XML looks like:
-- SNIP --
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="." type="application/x-xsp"?>
<?xml-stylesheet type="text/xsl" href="/template/showAll.xsl"?>
<xsp:page language="Perl"
xmlns:xsp="http://apache.org/xsp/core/v1"
xmlns:admin="http://bpss.net/NS/xsp/cmsadmin"
>
<page>
<content>
<admin:browse type="list" table="resource">
<admin:offset>0</admin:offset>
<admin:limit>20</admin:limit>
</admin:browse>
</content>
</page>
</xsp:page
-- END SNIP --
The debug code looks like:
-- SNIP --
1 package
Apache::AxKit::Language::XSP::ROOT::web::sites::don_dev::www::htdocs::ad
min::browse_2exml;
@Apache::AxKit::Language::XSP::ROOT::web::sites::don_dev::www::htdocs::a
dmin::browse_2exml::ISA = ('Apache::AxKit::Language::XSP::Page');
2 use Apache;
3 use Apache::Constants qw(:common);
4 use XML::LibXML;#initialize xsp namespace
5 #initialize xsp namespace
6
7 sub handler {
8 my ($r, $cgi, $document) = @_;
9 my ($parent);
10
11 { my $elem =
$document->createElement(q|page|);$document->setDocumentElement($elem);
$parent = $elem; }
12 { my $elem =
$document->createElement(q|content|);$parent->appendChild($elem);
$parent = $elem; }
13 {# start browse table
14 my $_browse_type = q|list|;
15 my $_browse_table = q|resource|;
16 my $_file_name = q|/admin/browse.xml|;
17 my $_offset = "". q|0|;
18 my $_limit = "". q|20|;
19 BPSS::XSP::CMS::Admin::browse($_browse_table, $_browse_type,
$_offset, $_limit);
20 }
21 }); # non xsp tag
22 $parent->appendChild($text);
23 }
24 $parent = $parent->getParentNode;
25 $parent = $parent->getParentNode;
26
27 return OK;
28 }
29
-- END SNIP --
Am I missing anything obvious? I would be glad
to add the code or a debug ( although I saw nothing in
it ) if needed or wanted. I continue to look.
Don Shanks
Senior Applications Systems Engineer
Cell Systems Initiative - University of Washington
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]