[xml] problem with Xinclude
- From: КА <aleksay-bird mail ru>
- To: xml gnome org
- Subject: [xml] problem with Xinclude
- Date: Mon, 07 Apr 2008 23:43:26 +0400
Hello!
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:
---doc.xml---
<?xml version ="1.0" encoding = 'KOI8-R'?>
<doc>
<tasks>
<item name="1 man"> <!--sic!-->
<coord id="159">
<x>5752147</x>
<y>7435191</y>
</coord>
</item>
</tasks>
</doc>
---
---maindoc.xml---
<?xml version ="1.0" encoding = 'KOI8-R'?>
<order>
<item>
<task xmlns:xinclude="http://www.w3.org/2001/XInclude">
<xinclude:include href="doc.xml#xpointer(/doc/tasks/item[ name='1 man']/coord)"/> <!--sic!-->
</task>
</item>
</order>
---
So:
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?
Thanks!
---
Alex
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]