Skip Menu |

This queue is for tickets about the XML-LibXSLT CPAN distribution.

Report information
The Basics
Id: 758
Status: resolved
Priority: 0/
Queue: XML-LibXSLT

People
Owner: Nobody in particular
Requestors: mtardif [...] sitepak.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.50
Fixed in: (no value)



Subject: parse_stylesheet not throwing exception
The documentation about the parse_stylesheet method states that an exception will be thrown on invalid XSLT. Unfortunately, this is not happening because the libxslt error function is not being set. According to Matt Sergeant's email to perl-xml@listserv.ActiveState.com dated 18/06/2002, "the solution is to work the same way as XML::LibXML - a global error SV which gets appended to. If SvCUR(error_sv) is > 0, then there was an error, and so croak with it." Marc - Sitepak
On út 18.čen.2002 10:09:56, guest wrote: Show quoted text
> The documentation about the parse_stylesheet method states that an > exception will be thrown on invalid XSLT. Unfortunately, this is > not happening because the libxslt error function is not being
set. Show quoted text
> According to Matt Sergeant's email to perl- > xml@listserv.ActiveState.com dated 18/06/2002, "the solution is
to Show quoted text
> work the same way as XML::LibXML - a global error SV which gets > appended to. If SvCUR(error_sv) is > 0, then there was an error, > and so croak with it." > > Marc - Sitepak
XML-LibXSLT 1.60 "to be" in the axkit subversion repository now contains simple error reporting code similar to XML-LibXML. -- Petr