You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Derek Dees <dj...@mm.com> on 2002/06/10 18:30:07 UTC

Problems with XSLT task

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>