Thomas Christensen wrote:
> 
> I'm using the xep fo addon from within XMLEditor on a docbook document  
> which uses xinclude with xpointers to avoid duplicating texts. The  
> texts are sometimes in the same document and so the xincludes are with  
> an empty href meaning "current document". When generating pdf's from  
> within XMLEditor, everything works. However when I run the XEP using  
> the command line tool, it fails with on these empty hrefs:
> [warning] 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.
> [error] Error reported by XML parser; SystemID: file:/mydocument.xml;  
> Line#: 25; Column#: 49
> [error] javax.xml.transform.TransformerException: Error reported by  
> XML parser
> 
> I'm using XEP 4.13, xerces 2.9.1, xml-resolver 1.2.
> 
> My question is this. Have the XMLEditor been set up to use a different  
> component that resolves these empty hrefs?
> 

* xml-resolver is not used at all to process something like
<xi:include href="" xpointer="myid"/>

* As of v4, XMLmind XML Editor uses Xerces 2.9 as its XML parser.
However we implement our own DTD/XSD/RNG validator and our own XInclude
processor.

* Your problem comes from the XInclude implementation of Xerces which
does not seem to support valid XIncludes such as:

<xi:include href="" xpointer="myid"/>

or:

<xi:include xpointer="myid"/>

This kind of interchange problems are documented here: "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

* We, XMLmind, are XEP customers too, but rather than using xep or
xep.bat, we use convertdoc or convertdoc.bat. Convertdoc is a
command-line utility allowing to execute XMLmind XML Editor's process
commands. See
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/convertdoc.html

* See also xmltool which may be used to create a flat copy of a modular
document. http://www.xmlmind.com/xmleditor/_distrib/doc/xmltool/index.html


Reply via email to