OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Ant build error during DocBook xi:includes


I'm working with a inherited build system which converts dita to docbook then to HTML/PDF and I'm getting failure during a stage in the build that tries to resolve the DocBook xi:includes:

 

   <target name="resolveXincludes" depends="DocBookXML">

        <outputMessage message="Identity transformation of ${output.base.path.build}docbook-xml/${base.file.name}/${base.file.name}.xml to resolve xi:includes" />

        <saxon6-xinclude

           in="${output.base.path.build}docbook-xml/${base.file.name}/${base.file.name}.xml"

           out="${output.base.path.build}docbook-xml/${base.file.name}/${base.file.name}-resolved.xml"

           style="${docbook.xslt.customization.path}copy.xsl"

           docId="${current.docid}" />

   </target>

The failure seems to come during the call to the standard copy.xsl file:

 

                <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">

                                <xsl:template match="@*|node()">

                                                <xsl:copy>

                                                                <xsl:apply-templates select="@*|node()"/>

                                                </xsl:copy>

                                </xsl:template>

                </xsl:stylesheet>

 

During this section, the build fails:

 

                resolveXincludes:

                                [echo] ***************************

                                [echo]

                                 [echo] Identity transformation of ../output/docbook-xml/MDEXMigration/MDEXMigration.xml to resolve xi:includes

                                [echo]

                                 [echo] ***************************

                                [java] Executing '/scratch/publishing/jdk1.6.0_37/jre/bin/java' with arguments:

                                [java] '-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl'

                                [java] '-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl'

                                [java] '-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration'

                                [java] '-classpath'

                                [java] '/scratch/publishing/publishing-tools/saxon6-5-5/saxon.jar:/scratch/publishing/publishing-tools/xerces-2_11_0/xercesImpl.jar:/scratch/publishing/publishing-tools/xml-commons-resolver-1.2/resolver.jar:/scratch/publishing/publishing-tools/catalog:/scratch/publishing/publishing-tools/docbook-xsl-ns-1.76.1/extensions/saxon65.jar'

                                [java] 'com.icl.saxon.StyleSheet'

                                [java] '-x'

                                [java] 'org.apache.xml.resolver.tools.ResolvingXMLReader'

                                [java] '-y'

                                [java] 'org.apache.xml.resolver.tools.ResolvingXMLReader'

                                [java] '-r'

                                [java] 'org.apache.xml.resolver.tools.CatalogResolver'

                                [java] '-u'

                                [java] '-o'

                                [java] '../output/docbook-xml/MDEXMigration/MDEXMigration-resolved.xml'

                                [java] '../output/docbook-xml/MDEXMigration/MDEXMigration.xml'

                                [java] '../docbook-xsl-customization/copy.xsl'

                                [java] 'current.docid=MDEXMigration'

                                [java]

                                 [java] The ' characters around the executable and arguments are

                                [java] not part of the command.

 

                                [java] Error

                                 [java]   Failure reading file:////scratch/publishing/hudson/jobs/Dita-test-project/workspace/serverdoc/WorkingDoc/main/publishing/output/docbook-xml/MDEXMigration/MDEXMigration.xml: No route to host

                                [java] Transformation failed: Run-time errors were reported

                                  [ant] Exiting /scratch/publishing/hudson/jobs/Dita-test-project/workspace/serverdoc/WorkingDoc/main/publishing/build-files/mdex-build-doc-migration.xml.

 

                BUILD FAILED

 

BTW - The file it fails reading exists in that location.

 

I've got debug turned on, so the "No route to host ... Transformation failed: Run-time errors were reported" is the only clue I've got.

 

Anybody have any ideas?

 

Rob Flynn

Oracle/ATG



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]