Hussein Shafie a ?crit : > Camille B?gnis wrote: >> XXE supports xincludes of elements using the xpointer ID reference syntax: >> <xi:include href="Inserted.xml" xpointer="id"/> > > As simple and standard as it could be, isn't it? > >> when compiling DocBook 5 documents. >> >> However I was unable to make this work outside of XXE: >> http://lists.oasis-open.org/archives/docbook-apps/200706/msg00043.html >> >> do XXE use the patched Xerces as pointed out in this thread or another >> parser? >> > > No, XXE does not use Xerces (nor Xalan). It uses XP (and Saxon). And if > it happened to use Xerces, it wouldn't rely on this excellent XML parser > to properly process XIncludes.
So that would work with XP? I know that's a bit off topic, but How do you call XP through saxon? For Xerces I use: -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl > In order to process your modular DocBook 5 documents, Xerces needs to > [1] to implement the XInclude standard. > [2] AND to implement the xml:id standard > ** OR to support RELAX NG in order to discover that DocBook 5's xml:id > > is of type xsd:ID (much harder than support the xml:id standard). > > I doubt that this is the case. I also doubt that you'll find any tool > which satisfies such conditions. However, I would bet on xsltproc (with > option --xinclude), try this and tell me if it works. Yes it works with xsltproc, but that's not java :-) > * "Creating modular documents which are highly interchangeable with > other applications" > http://www.xmlmind.com/xmleditor/_distrib/doc/user/tutorial_modular_document.html#interchangeable_modular_documents > > * "The convertdoc command line tool" > http://www.xmlmind.com/xmleditor/_distrib/doc/commands/convertdoc.html > (we use this tool outside XXE.) Yes, thanks for this. Camille.

