1:<project name="FOP-IT" default="build_all"> 2: 3:<!-- Define FOP Task --> 4:<property name="fop.dir" value="/homedir/ap/fop"/> 5:<taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop"> 6: <classpath> 7: <pathelement location="${fop.dir}/build/fop.jar"/> 8: <pathelement location="${fop.dir}/lib/avalon-framework-cvs-20020806.jar"/> 9: <pathelement location="${fop.dir}/lib/batik.jar"/> 10: </classpath> 11:</taskdef> 12: 13:<!-- Create an XSL:FO file and then generate a PDF --> 14:<target name="create-fo"> 15: <!-- Transform one module and its lessons and topicsinto an xsl:fo file --> 16: <xslt basedir="." destdir="." 17: style="bard_to_fo.xsl" includes="**/*.ply.xml" force="true"> 18: <mapper type="glob" from="*.ply.xml" to="*.fo" /> 19: </xslt> 20:</target> 21: 22:<target name="create-pdf" depends="create-fo" description="Generates a single PDF file"> 23: <fop format="application/pdf" outdir="." messagelevel="debug"> 24: <fileset dir="."> 25: <include name="*.fo"/> 26: </fileset> 27: </fop> 28:</target> 29: 30:<!-- === Create HTML Version === --> 31:<target name="create-html-play"> 32: <xslt basedir="." destdir="." 33: style="bard_to_html.xsl" includes="**/*.ply.xml" force="true"> 34: <mapper type="glob" from="*.ply.xml" to="*.html" /> 35: </xslt> 36:</target> 37: 38: 39:<!-- === Build All === --> 40:<!-- Call all the other XSLT templates to create a complete list of products. --> 41: 42:<target name="build_all" depends="create-pdf, create-html-play" description="Performs all the builds we want to create by default."> 43:</target> 44: 45:</project>