<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>It would seem that the command line version handles xincludes with empty href differently that the one in XMLEditor. </div><div><br></div><div>I'm using xincludes with xpointer references to fetch a tag with a specified id within the same xml document, so that I can avoid typing the same text multiple times. This works by setting href="", but only if I run XEP from within XMLEditor. As I understand the specs, href="" is allowed if there is an xpointer reference.</div><div><br></div><div><div><xi:include href="" xmlns:xi="<a href="http://www.w3.org/2001/XInclude">http://www.w3.org/2001/XInclude</a>" xpointer="element(admin-ccc-tab-title)" /> </div></div><div><br></div><div>If I take out these xincludes, the pdf is generated.</div><div><br></div><div>Any ideas?</div><div><br></div><div>Should I just go for docbook 5.0? Does that remove the pain with using xincludes with dtds (no validation)?</div><div><br></div><div>Thomas</div><div><br><div><div>On 26 Nov 2008, at 00:05, Thomas Christensen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi<div><br></div><div>I am usin XEP <span class="Apple-style-span" style="font-family: 'Lucida Grande'; ">4.13-20081014 to generate pdf's from an xml file that uses xinclude to include other xml files. All following docbook 4.5 dtd once the xml files are combined. Using XMLEditor and it's XEP plugin, I can generate the pdf but using a commandline, I fails with the errors below. </span></div><div><font class="Apple-style-span" face="'Lucida Grande'"><br></font></div><div><font class="Apple-style-span" face="'Lucida Grande'"><div>[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.</div><div>[error] Error reported by XML parser; SystemID: file:/Users/tchristensen/Projects/nordija/fokusondocs/trunk/src/administration-console/central-channel-change.xml; Line#: 25; Column#: 49</div><div>[error] javax.xml.transform.TransformerException: Error reported by XML parser</div><div>[error] Error reported by XML parser; SystemID: file:/Users/tchristensen/Projects/nordija/fokusondocs/trunk/src/administration-console/customer-service-tab.xml; Line#: 180; Column#: 51</div><div>[error] javax.xml.transform.TransformerException: Error reported by XML parser</div><div>[error] Error reported by XML parser; SystemID: file:/Users/tchristensen/Projects/nordija/fokusondocs/trunk/src/administration-console/getting-started.xml; Line#: 491; Column#: 87</div><div>[error] javax.xml.transform.TransformerException: Error reported by XML parser</div><div>[error] Error reported by XML parser; SystemID: file:/Users/tchristensen/Projects/nordija/fokusondocs/trunk/src/administration-console/index.xml; Line#: 13; Column#: 40</div><div>[error] javax.xml.transform.TransformerException: Error reported by XML parser</div><div>error: formatting failed: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: Error attempting to parse XML file (href='getting-started.xml').</div><div><br></div><div>This is my ant build set up (actually embedded in maven using maven-antrun-plugin):</div><div><br></div><div><div><div><div><property name="endorsed.dirs" value="${xerces.dir}:${xml-resolver.dir}:${xep.dir}:${XEPTask.dir}:${saxon.dir}:${xt.dir}"/></div><div><property name="xep.config" value="${src}/config/xep.xml"/></div><div><property name="xml.catalog.files" value="${target}/lib/docbook-xml-${docbook.xml.version}/catalog.xml;${target}/lib/docbook-xsl-${docbook.xsl.version}/catalog.xml;${src}/config/xmlcatalog/svgcatalog.xml"/></div><div><br></div></div><div><path id="xep-classpath"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><pathelement location="${maven.dependency.xep.xep.jar.path}"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><pathelement location="${maven.dependency.xep.xt.jar.path}"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><pathelement location="${maven.dependency.xerces.xercesImpl.jar.path}"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><pathelement location="${maven.dependency.xml-resolver.xml-resolver.jar.path}"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><pathelement location="${maven.dependency.xep.saxon.jar.path}"/></div><div></path></div><div><br></div><div><java fork="true" classname="com.renderx.xep.XSLDriver"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>output="${target}/administration-guide.log"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>maxmemory="256m"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>failonerror="true"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><arg value="-valid"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><arg value="${src}/administration-console/index.xml"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><arg value="-xsl"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><arg value="${target}/lib/docbook-xsl-${docbook.xsl.version}/fo/docbook.xsl"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><arg value="-pdf"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><arg value="${target}/docs/administration-console.pdf"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><classpath></div><div><span class="Apple-tab-span" style="white-space:pre">                </span><path refid="xep-classpath"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span></classpath></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><sysproperty key="com.renderx.xep.CONFIG" value="${xep.config}"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><sysproperty key="java.endorsed.dirs" value="${endorsed.dirs}"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><!-- Enable xerceses XInclude and Catalog support --></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><sysproperty key="com.renderx.sax.entityresolver" value="org.apache.xml.resolver.tools.CatalogResolver"/> </div><div><span class="Apple-tab-span" style="white-space:pre">        </span><sysproperty key="com.renderx.jaxp.uriresolver" value="org.apache.xml.resolver.tools.CatalogResolver"/> </div><div><span class="Apple-tab-span" style="white-space:pre">        </span><sysproperty key="xml.catalog.files" value="${xml.catalog.files}"/> </div><div></java></div><div><br></div><div>I'm using xerces 2.9.1, resolver 1.2, docbook xsl 1.74.0 and docbook xml 4.5. XT, Saxon and xep libraries are from the xep distribution.</div><div><br></div><div>Anyone seen this kind of different behavior before?</div><div><br></div><div>Thomas</div><div><br></div></div></div></font></div></div></blockquote></div><br></div></body></html>