When XMLMind creates a referenced inclusion from one part of a document to 
another part, it uses an XInclude with an empty href attribute.  This is 
permitted by the XInclude standard for referencing the same document. 
However, I'm having difficulties processing documents with such references.

The xsltproc processor with --xinclude reports that they are recursive 
references, even though the xpointer attribute identifies only one element, 
and it is not recursive.

The Xerces 2.7.1 and 2.9.0 processors with XInclude enabled report errors 
like this:

"org.xml.sax.SAXParseException: Include operation failed,
reverting to fallback.  Resource error reading file as XML
(href=''). Reason: An xpointer was specified that points
to a location in the source infoset. This location cannot
be accessed due to the streaming nature of the processor."

Has anyone succeeded in processing files with such XIncludes?

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs at sagehill.net




Reply via email to