[oXygen-user] working with xincludes


Wed May 18 22:53:28 CDT 2005


Hi,

I'm having problems with xincludes and docbook.  Including an entire file with
xinclude is successful, but using xpointer fails.  Am I doing something wrong here?

When I transfrom the document with Saxon 6.5.3 or xalan it fails with:
error: The id "cu_app_schemas" already exists in this document

When I transform the document with xsltproc it fails with:
w XPath error:Invalid context position
w xmlXPathCompiledEval:evaluation failed
f The transformer ended with the code:10


I have this in my <book>:
====================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.docbook.org/xml/4.3/docbookx.dtd" [
<!ENTITY % xinclude SYSTEM "../single-source/xinclude.mod">
<!ENTITY pref SYSTEM "../single-source/entity_preface.xml">
<!ENTITY conventions SYSTEM "../single-source/entity_conventions.xml">
%xinclude;
]>
<book>

snipped....

  <xi:include href="cu_article_troubleshooting.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"/>
  <xi:include href="cu_article_appendixes.xml" xpointer="cu_app_schemas"
xmlns:xi="http://www.w3.org/2001/XInclude"/>
</book>
===================================================

and this in the file cu_appendixes.xml:
===================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.docbook.org/xml/4.3/docbookx.dtd" [
<!ENTITY % xinclude SYSTEM "../single-source/xinclude.mod">
%xinclude;
]>

<book>

snipped....

  <appendix id="cu_app_schemas">
    <title>Schemas</title>

snipped....
</appendix>
</book>
==================================================
Oxygen6 has:
Apache Xerces-J 	2.6.2
Apache Xalan Java 	2.5.1
SAXON_6	6.5.3
SAXON_8B	8.4
Apache FOP	0.20.5
Jing	20030619
Trang	20030619
Apache NekoHTML 	0.9.4


Cheers,

Geoff



-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



More information about the oXygen-user mailing list