]> granicus.if.org Git - docbook-dsssl/commitdiff
Added ant build for FO
authorJirka Kosek <jirka@kosek.cz>
Fri, 15 Aug 2014 18:08:02 +0000 (18:08 +0000)
committerJirka Kosek <jirka@kosek.cz>
Fri, 15 Aug 2014 18:08:02 +0000 (18:08 +0000)
xsl/fo/build.xml [new file with mode: 0644]

diff --git a/xsl/fo/build.xml b/xsl/fo/build.xml
new file mode 100644 (file)
index 0000000..0898524
--- /dev/null
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project name="DocBook XSLT 1.0 stylesheets - FO" default="all">\r
+\r
+  <property name="dbroot.dir" value="${ant.file}/../.."/>\r
+  <import file="../tools/build-shared.xml"/>\r
+\r
+  <target name="all" depends="param, titlepage, profile">\r
+  </target>\r
+\r
+  <target name="param">\r
+    <echo>Building FO parameters...</echo>\r
+    <antcall target="build-params">\r
+      <param name="condition" value="fo"/>\r
+    </antcall>\r
+  </target>\r
+\r
+  <target name="titlepage">\r
+    <echo>Building FO titlepage...</echo>\r
+    <xslt in="titlepage.templates.xml" out="titlepage.templates.xsl" style="../template/titlepage.xsl">\r
+      <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
+      <classpath refid="saxon.classpath"/>\r
+    </xslt>\r
+  </target>\r
+\r
+  <target name="profile">\r
+    <echo>Building profiling version of FO stylesheet...</echo>\r
+    <xslt in="docbook.xsl" out="profile-docbook.xsl" style="../profiling/xsl2profile.xsl">\r
+      <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
+      <classpath refid="saxon.classpath"/>\r
+    </xslt>\r
+  </target>\r
+\r
+  <target name="clean">\r
+    <delete>\r
+      <fileset dir=".">\r
+       <include name="profile-docbook.xsl"/>\r
+       <include name="titlepage.templates.xsl"/>\r
+      </fileset>\r
+    </delete>\r
+    <antcall target="clean-params"/>\r
+  </target>\r
+\r
+</project>\r