I want to transform an xml file that lives in a zip file. I'm trying to do this by nesting zipfileset within an xslt task. I've also tried nesting a zipfile.

The xslt task seems to be looking for p.xml in the basedir rather than within the zip.

Any help appreciated.

Richard Hoberman



1.  Here is my build file:

<project name="" default="default" basedir=".">     
   <target name="default">
<xslt style="odt2docbook.xsl" destdir="." excludes="*" scanincludeddirectories="false">
         <zipfileset src="p.zip" includes="p.xml"/>
         <!-- zipentry zipfile="p.zip" name="p.xml" / -->
         <mapper type="glob" from="*.xml" to="*.1.xml" />
      </xslt>
   </target>      
</project>

2.  Here is the result:

Buildfile: /home/rhoberma/workspace/spec-converter/build.xml
default:
     [xslt] Transforming into /home/rhoberma/workspace/spec-converter
[xslt] Processing /home/rhoberma/workspace/spec-converter/p.xml to /home/rhoberma/workspace/spec-converter/p.1.xml [xslt] Loading stylesheet /home/rhoberma/workspace/spec-converter/odt2docbook.xsl
     [xslt] Failed to process null

BUILD FAILED
/home/rhoberma/workspace/spec-converter/build.xml:4: java.io.FileNotFoundException: /home/rhoberma/workspace/spec-converter/p.xml (No such file or directory)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to