[oXygen-user] working with xincludes


Thu May 19 21:47:36 CDT 2005


Thank you, the sample work as expected.

Cheers,

Geoff

Quoting Sorin Ristache <>:

> Hello Geoff,
> 
> The XInclude support used by both Saxon and Xalan does not include 
> XPointer support yet. Use Libxslt instead as XSLT transformer as it 
> supports the XPointer recommendation. For this select Xsltproc in the 
> Transformer combo box of the <oXygen/>'s Edit scenario dialog.
> 
> As an example see the two attached files. If you copy them in the 
> "samples" subdirectory of the <oXygen/> install directory you will get 
> no validation errors and transformation with Libxslt will include in the 
> master document only the section referred using the XPointer expression.
> 
> 
> Best regards,
> Sorin
> 
> 
>  wrote:
> 
> > 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