You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ron Piterman <rp...@gmx.net> on 2005/08/08 16:53:03 UTC
xmlcatalog to resolve document() in xslt task
Hi,
Inside an xslt task I define an xmlcatalog.
In the xsl file I call document(ff.xml)
the file is on the classpath, but I keep getting a NoFileFound Exception.
What did I do wrong?
Cheers,
Ron
<project name="port" default="default">
<description>
description
</description>
<property
name="t.context"
value="/home/ron/workspace/Portal/context"
/>
<property
name="t.context.lib"
value="${t.context}/WEB-INF/lib/"
/>
<property
name="t.context.classes"
value="${t.context}/WEB-INF/classes/"
/>
<path id="t.classpath">
<pathelement location="${t.context.classes}"/>
<fileset dir="${t.context.lib}">
<include name="*.jar"/>
</fileset>
</path>
<!-- =================================
target: default
================================= -->
<target name="default" depends="xsl" description="--> description">
<echo>Build Successfull.</echo>
</target>
<target name="xsl">
<xslt style="tcomdoc.xsl"
in="tcomdoc.xml"
out="documentation.xml"
>
<xmlcatalog>
<classpath path="t.classpath"/>
</xmlcatalog>
</xslt>
</target>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org