List Info

Thread: copyNode and attributes of XML_XINCLUDE_START




copyNode and attributes of XML_XINCLUDE_START
user name
2007-02-01 09:03:38
Hi Daniel, All,

one of the users of the Perl bindings has noticed that after

clonning a subtree (using xmlCopyNode internally) the
clonned  
XML_XINCLUDE_START (very useful BTW) nodes do not carry
their 
original attributes (such as href and xpointer).

The attached patch for tree.c fixes this. I'm not sure if 
XML_XINCLUDE_END can ever carry properties; if not, safely
remove 
the 2 corresponding lines from the patch.

Thanks in advance for considering the patch,
-- Petr

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml

  
Re: copyNode and attributes of XML_XINCLUDE_START
user name
2007-02-02 03:41:58
On Thu, Feb 01, 2007 at 04:03:38PM +0100, Petr Pajas wrote:
> Hi Daniel, All,
> 
> one of the users of the Perl bindings has noticed that
after 
> clonning a subtree (using xmlCopyNode internally) the
clonned  
> XML_XINCLUDE_START (very useful BTW) nodes do not carry
their 
> original attributes (such as href and xpointer).
> 
> The attached patch for tree.c fixes this. I'm not sure
if 
> XML_XINCLUDE_END can ever carry properties; if not,
safely remove 
> the 2 corresponding lines from the patch.
> 
> Thanks in advance for considering the patch,

  Sounds reasonnable but I'm really short on time right now,
for the
question answer is no so this can be removed, could you
bugzilla this so
we don't loose track of this ?

  thanks !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/v
irtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillardredhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )