logo       

Re: LibXSLT / XPathContext interaction: msg#00016

lang.perl.xml

Subject: Re: LibXSLT / XPathContext interaction

On 3 Dec 2003, at 11:55, Robin Berjon wrote:

Matt Sergeant wrote:
On 1 Dec 2003, at 11:14, Elizabeth Mattijsen wrote:
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 thought Python had a simple refcounted GC just like Perl's, and that libxslt works there, am I wrong? If not, the way they've done it could surely help us.

I'm pretty sure the Python API for libxslt (and libxml) is a straight port of the C library, including having to free things yourself. Looking back, that might have been a better fit to the library, but it wouldn't have been a better fit to perl.

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