ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Derek Dees <djd...@mm.com>
Subject Problems with XSLT task
Date Mon, 10 Jun 2002 16:30:07 GMT
All -

I'm currently having a problem with the XSLT task failing to compile the 
second file in a list. I have several valid XML files (DocBook V4.1.2) that 
I am applying a series of style sheets to. Each document works fine when 
it's the first in the list, but the second document fails and the ant build 
terminates. If I rename the files to re-order the list processed, the new 
first document builds fine, the former now failing.

I have upgraded ant, the style sheets, Xalan, and Xerces to the versions 
documented below, without resolving the issue.

I copied  xercesImpl.jar, xmlParserAPIs.jar, xalan.jar, and xml-apis.jar 
into ant's lib directory and as far as I can tell, each component is being 
correctly called, with old versions archived and removed.

Any suggestions?



##########################
Software/Versions:
      Sun's JRE 1.4.0
      Ant 1.5 beta 2
      Xalan 2_3_1
      Xerces 2_3_1
      DocBook XSL Style Sheets 1.51.1

##########################
Output:
      transform:
           [echo] starting transform
           [xslt] Transforming into D:\Docs\workdocs\html
           [xslt] Processing D:\Docs\workdocs\src\schaumberg_publishing.xml 
to D:\Docs\workdocs\html\schaumberg_publishing.html
           [xslt] Loading stylesheet \XSL\drivers\workdoc.xsl
           [xslt] Processing 
D:\Docs\workdocs\src\z_ebiz_install_services.xml to 
D:\Docs\workdocs\html\z_ebiz_install_services.html

           [xslt] xsl/docbook-xsl/common/l10n.xsl:86:76: Fatal Error! 
Unknown error in XPath Cause: java.lang.NullPointerException
           [xslt] : Fatal Error! Fatal error during transformation Cause: 
Fatal error during transformation
           [xslt] Failed to process 
D:\Docs\workdocs\src\z_ebiz_install_services.xml

      BUILD FAILED
      D:\Docs\workdocs\build.xml:24: Fatal error during transformation

##########################
Buildfile:

<project name="ebill_docs" default="build" basedir=".">

<!-- init properties -->
<xmlcatalog id="docbookDTD">
         <dtd publicID="-//OASIS//DTD DocBook XML V4.1.2//EN" 
location="/docs/htdocs/dtds/docbook/docbookx.dtd"/>
</xmlcatalog>
<property name="src" value="./src" />
<property name="html" value="./html" />


<!-- The tasks -->
<target name="transform">
         <echo message="starting transform"/>
         <xslt
                 basedir="${src}"
                 destdir="${html}"
                 extension=".html"
                 includes="*.xml"
                 excludes="build.xml,backup*.xml, appendix*.xml, 
chapter*.xml, section*.xml, *.bak"
                 style="/XSL/drivers/workdoc.xsl">
                 <xmlcatalog refid="docbookDTD"/>
         </xslt>
         <echo message="ending transform"/>
</target>

<target name="build" depends="transform">
</target>
</project>



Derek
djdees@mm.com
http://www.mm.com/user/djdees

Sarchasm: The gulf between the author of sarcastic wit and the person who 
doesn't get it. 


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message