<project name="xslt" default="usage" basedir=".">
    <description>
        simple ant file to run xalan
</description>
  <property file="build.properties"/>
  <property name="lzx" value="o:/server/apache-tomcat-6.0.24/webapps/openlaszlo-4.7.1/my-apps"/>
  <property name="in" value="in.xml"/>
  <property name="xsl" value="style.xsl"/>
  <property name="out" value="${lzx}/out.xml"/>
  <target name="usage" description="this tasks prints out the usage for the xslt converter">
	  <echo>use -XSL to specify a stylesheet, use -IN to specify a source, and use -OUT to specify the output file</echo>
	  <echo>the ant target xslt is the target that you need to invoke to do the transformation</echo>
  </target>
  <target name="xslt" description="transform the source using the xsl" >
	  <echo>Using ${xsl} to transform ${in} and saving to ${out}</echo>
	  <java classname="org.apache.xalan.xslt.Process">
		  <classpath>
			  <fileset dir="${xalan.lib}" includes="*.jar"/>
		  </classpath>
		  <arg line="-XSL ${xsl}"/>
		  <arg line="-IN ${in}"/>
		  <arg line="-OUT ${out}"/>
	  </java>
  </target>

</project>


