| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project name="DocBook XSLT 1.0 stylesheets - FO" default="all"> |
| 3 | |
| 4 | <property name="dbroot.dir" value="${ant.file}/../.."/> |
| 5 | <import file="../tools/build-shared.xml"/> |
| 6 | |
| 7 | <target name="all" depends="param, titlepage, profile"> |
| 8 | </target> |
| 9 | |
| 10 | <target name="param"> |
| 11 | <echo>Building FO parameters...</echo> |
| 12 | <antcall target="build-params"> |
| 13 | <param name="condition" value="fo"/> |
| 14 | </antcall> |
| 15 | </target> |
| 16 | |
| 17 | <target name="titlepage"> |
| 18 | <echo>Building FO titlepage...</echo> |
| 19 | <xslt in="titlepage.templates.xml" out="titlepage.templates.xsl" style="../template/titlepage.xsl"> |
| 20 | <factory name="com.icl.saxon.TransformerFactoryImpl"/> |
| 21 | <classpath refid="saxon.classpath"/> |
| 22 | </xslt> |
| 23 | </target> |
| 24 | |
| 25 | <target name="profile"> |
| 26 | <echo>Building profiling version of FO stylesheet...</echo> |
| 27 | <xslt in="docbook.xsl" out="profile-docbook.xsl" style="../profiling/xsl2profile.xsl"> |
| 28 | <factory name="com.icl.saxon.TransformerFactoryImpl"/> |
| 29 | <classpath refid="saxon.classpath"/> |
| 30 | </xslt> |
| 31 | </target> |
| 32 | |
| 33 | <target name="clean"> |
| 34 | <delete> |
| 35 | <fileset dir="."> |
| 36 | <include name="profile-docbook.xsl"/> |
| 37 | <include name="titlepage.templates.xsl"/> |
| 38 | </fileset> |
| 39 | </delete> |
| 40 | <antcall target="clean-params"/> |
| 41 | </target> |
| 42 | |
| 43 | </project> |