logo       

Re: LibXSLT / XPathContext interaction: msg#00013

lang.perl.xml

Subject: Re: LibXSLT / XPathContext interaction

On 1 Dec 2003, at 11:14, Elizabeth Mattijsen wrote:

You seem to be confusing two modules. You're trying to register a
function with XML::LibXML::XPathContext and call it from a XSTL
stylesheet. That won't work. LibXSLT has its own function registering
API. See LibXSLT documentation for that.

Well, I was hoping they would work together... as the register_function in the non-CVS version of LibXSLT is badly broken if you try to build nodesets inside the Perl function.

I think it will always be broken - there's no way to get libxslt's manual free mechanism to work with perl's garbage collection system. At least not properly. The current CVS code just masks the problem.

I'd love to be proved wrong (via a patch), but it's not a priority for me personally to get it working.

Matt.

_______________________________________________
Perl-XML mailing list
Perl-XML@xxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise