On Tue, 15 Jul 2003, Marco Marongiu wrote:
> Hello *
>
> I am facing quite strange problems trying to port to AxKit 1.6.1 some
> XSP pages that used to work on 1.5.
>
> Some problems seem to come from the perl code that AxKit builds from the
> page: it seems to contain syntax errors, like in this case:
>
> ---SNIP---
> 61 for my $col (AxKit::XSP::ESQL::get_columns(0)) {
> 62 my $ancestor = 0;
> 63 $parent = __mk_element_node($document, $parent, "" . do {$col} . do
> {AxKit::X
> SP::ESQL::get_column($col, $ancestor)}$parent = $parent->getParentNode;
> 64
> 65 } # </get-columns>
> ---SNIP---
> Compilation failed: syntax error at (eval 270) line 63, near "}$parent "
> syntax error at (eval 270) line 121, near "}$parent "
>
> The error is quite evident.
Indeed. I wrote a simple test XSP:
<?xml version="1.0"?>
<xsp:page
xmlns:xsp="http://apache.org/xsp/core/v1"
>
<html>
<body>
Test xsp
<xsp:element
name="b"><xsp:attribute><xsp:name><xsp:expr>"class"</xsp:expr></xsp:name>baldy</xsp:attribute>here
in bold</xsp:element>
<p/>
<xsp:element><xsp:name><xsp:expr>"e" .
"m"</xsp:expr></xsp:name>emph?</xsp:element>
</body>
</html>
</xsp:page>
Which handily demonstrates the bug. I have now fixed this in CVS.
--
<!-- Matt -->
<:->get a SMart net</:->
Spam trap - do not mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]