Skip Menu |

This queue is for tickets about the AxKit CPAN distribution.

Report information
The Basics
Id: 1295
Status: resolved
Priority: 0/
Queue: AxKit

Owner: Nobody in particular
Requestors: jdaily [...]

Bug Information
Severity: Normal
Broken in: 1.6
Fixed in: (no value)

Subject: Perl error when using XML inside xsp:attribute
Download (untitled) / with headers
text/plain 1.2k
The following code resulted in an obscure Perl error because ESQL wasn't loaded. I understand why recognizing missing taglibs is impossible, but a more informative error would have made tracking this down easier. <xsp:attribute name="image"> <esql:get-string column="header_image"/> </xsp:attribute> The error: Compilation failed: syntax error at (eval 13) line 65, near "q||{ " syntax error at (eval 13) line 68, near "; ." The erroneous Perl code that appeared in apache's error.log: 60 { my $elem = $document->createElementNS(q||,q|esql:max-rows|);$parent->appendChild($elem); $parent = $elem; } 61 { my $text = $document->createTextNode(q|1|);$parent->appendChild($text); } 62 $parent = $parent->getParentNode; 63 { my $elem = $document->createElementNS(q||,q|esql:results|);$parent->appendChild($elem); $parent = $elem; } 64 { my $elem = $document->createElementNS(q||,q|esql:row-results|);$parent->appendChild($elem); $parent = $elem; } 65 $parent->setAttribute(q|image|, "". q||{ my $elem = $document->createElementNS(q||,q|esql:get-string|);$parent->appendChild($elem); $parent = $elem; } 66 $parent->setAttribute(q|column|,q|header_image|);
An attempt at a fix (mostly untested) is now in CVS v1.24

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to