[xml] XInclude and Namespaces



Hi

played with the XInclude Support in libxml and it seems to work very fine,
except when my xpath-expression has namespaces... the xml:

*******
<?xml version="1.0" standalone="yes"?>
<root xmlns:xi="http://www.w3.org/2001/XInclude";
xmlns:s="http://www.oscom.org/2002/SlideML/0.9/";>
<xi:include
href="http://roger.bitflux.ch/slideset-20020808.xml#xpointer(/s:slideset/s:slide[1]/*)"/>
</root>
*******

produces with  xmllint --xinclude xinclude.xml just:
*******
Error Undefined namespace prefix

^
XInclude: XPointer evaluation failed: #xpointer(/s:slideset/s:slide[1]/*)
<?xml version="1.0" standalone="yes"?>
<root xmlns:xi="http://www.w3.org/2001/XInclude";
xmlns:s="http://www.oscom.org/2002/SlideML/0.9/";>

</root>
********

Did i something wrong, or how can I declare that namespace correctly?

TIA

christian





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