Jean Jordaan wrote: > > XXE seems to be turning this:: > > <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" > xpointer="common_terms" /> > > into this:: > > <xi:include href="" xmlns:xi="http://www.w3.org/2001/XInclude" > xpointer="common_terms" />
This is allowed by the W3C recommendation. See http://www.w3.org/TR/xinclude/#include_element ''The href attribute is optional; the absence of this attribute is the same as specifying href="", that is, the reference is to the same document.'' > I.e. it inserts a 'href=""'. I would have thought this should be fine, > but the first works, and the second causes "element include: XInclude > error : detected a recursion in .../glossary.xml". This is the command > I use. > > $ xmlto html operator-manual.docbook.xml > > In glossary.xml I have e.g. a glossary of common terms, and some glossaries > of project-specific terms. I want to combine them using XInclude to a > single glossary per project, and then include that dictionary of > common+specific terms into the appropriate manual. > This is a bug in xmlto (I don't know this program). More information in "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

