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

Re: [xml] xmllint, xinclude, and namespaces



On Tue, Nov 21, 2006 at 09:10:37PM +0000, Sebastian Rahtz wrote:
> Consider this:
> 
> [spqr-ibm]/tmp:cat x.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <a xmlns="http://www.tei-c.org/ns/1.0";>
>   <include href="a.xml" xmlns="http://www.w3.org/2001/XInclude"/>
> </a>
> 
> [spqr-ibm]/tmp:cat a.xml
> <p>vide</p>
> 
> 
> [spqr-ibm]/tmp:xmllint --xinclude x.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <a xmlns="http://www.tei-c.org/ns/1.0";>
>   <p>vide</p>
> </a>
> 
> Surely the result should show an empty namespace on the
> include <p>?
> 
> xsltproc gets it right. If I run an identity transform with --xinclude, 
> I get
> 
> <a xmlns="http://www.tei-c.org/ns/1.0";>
>    <p xmlns="">vide</p>
> </a>

  Hum, right it's a libxml2 bug, could you bugzilla it ?

    thanks !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/



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