[xml] problem with Xinclude

I'm using libxml2 (ver.2.6.31) under Linux (kernel 2.2.20).
Some problem with XInclude.
Following files do not work properly in my application, so i tested it with xmllint:

<?xml version ="1.0" encoding = 'KOI8-R'?>
        <item name="1 man">        <!--sic!-->        
           <coord id="159">

<?xml version ="1.0" encoding = 'KOI8-R'?>
         <task xmlns:xinclude="http://www.w3.org/2001/XInclude";>
             <xinclude:include href="doc.xml#xpointer(/doc/tasks/item[ name='1 man']/coord)"/>  <!--sic!-->  

xmllint --xinclude maindoc.xml -> failed build URL...

1. If i remove blank between symbol "1" and  string "man" (<item name="1man">) at attribute section in both 
files then it works fine.
2. Usually, i use koi8-r encoding. if use Cyrillics symbols here - xinclude dont work, no matter blank remove 
or not.  

At the same time, XPath works fine in any case (with Cyrillics and blanks).
Any solution?



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