Re: [gdome]ANN: XML::GDOME 0.7.0



On Tue, 25 Dec 2001, Luca Padovani wrote:

> > Next steps:
> > * Add ability to go from XML::LibXML trees to XML::GDOME trees
> >   and vice-versa.
> 
> why do you think this is desirable?

I would like to use libxslt to do XSL transforms directly on the tree
generated by libgdome.

This would be more efficient than saving to XML then reading the XML 
string back into a libxml tree, then applying the libxslt transform.

This does introduce some thorny memory-management issues, like when 
XML::LibXML deletes the libxml tree while there are still some 
XML::GDOME structures that depend on that tree.

A better approach might be to call libxslt directly from XML::GDOME 
instead of using XML::LibXML and XML::LibXSLT.  The rationale for this is 
that we would avoid the problem of XML::LibXML/LibXSLT freeing libxml 
trees that XML::GDOME nodes depend on.

Cheers,
-TJ




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]