]> granicus.if.org Git - docbook-dsssl/commitdiff
More build files added
authorJirka Kosek <jirka@kosek.cz>
Fri, 15 Aug 2014 17:55:33 +0000 (17:55 +0000)
committerJirka Kosek <jirka@kosek.cz>
Fri, 15 Aug 2014 17:55:33 +0000 (17:55 +0000)
xsl/build.xml
xsl/epub3/build.xml [new file with mode: 0644]
xsl/xhtml-1_1/build.xml [new file with mode: 0644]
xsl/xhtml/build.xml [new file with mode: 0644]
xsl/xhtml5/build.xml [new file with mode: 0644]

index 6474cc5627a32ecb6d5b29e01872f4f008314105..9fc83b0c838ddafb05cf1df111fe39ac72921c78 100644 (file)
@@ -30,7 +30,7 @@
     <ant dir="extensions"/>\r
     <ant dir="xhtml"/>\r
     <ant dir="xhtml-1_1"/>\r
-    <ant dir="webhelp"/>\r
+    <!-- <ant dir="webhelp"/> --> <!-- Webhelp is excluded as it builds only demo document not files needed for runtime -->\r
     <ant dir="xhtml5"/>\r
     <ant dir="epub3"/>\r
   </target>\r
diff --git a/xsl/epub3/build.xml b/xsl/epub3/build.xml
new file mode 100644 (file)
index 0000000..b8b337c
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project name="DocBook XSLT 1.0 stylesheets - EPUB3" default="all">\r
+\r
+  <property name="dbroot.dir" value="${ant.file}/../.."/>\r
+  <import file="../tools/build-shared.xml"/>\r
+\r
+  <target name="all" depends="titlepage">\r
+  </target>\r
+\r
+  <target name="titlepage">\r
+    <echo>Building EPUB3 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="clean">\r
+    <delete>\r
+      <fileset dir=".">\r
+       <!-- FIXME -->\r
+      </fileset>\r
+    </delete>\r
+  </target>\r
+\r
+</project>\r
diff --git a/xsl/xhtml-1_1/build.xml b/xsl/xhtml-1_1/build.xml
new file mode 100644 (file)
index 0000000..13418d3
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project name="DocBook XSLT 1.0 stylesheets - XHTML" default="all">\r
+\r
+  <property name="dbroot.dir" value="${ant.file}/../.."/>\r
+  <import file="../tools/build-shared.xml"/>\r
+\r
+  <target name="all" depends="html2xhtml">\r
+  </target>\r
+\r
+  <target name="html2xhtml">\r
+    <echo>Building XHTML 1.1 stylesheets from HTML ones...</echo>\r
+    <xslt style="html2xhtml.xsl" destdir="." basedir="../html">\r
+      <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
+      <classpath refid="saxon.classpath"/>\r
+      <include name="*.xsl"/>\r
+      <mapper type="flatten"/>\r
+    </xslt>\r
+    <copy file="../html/docbook.css.xml" todir="."/>\r
+    <xslt in="../html/docbook.xsl" out="docbook-no-doctype.xsl" style="html2xhtml.xsl">\r
+      <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
+      <classpath refid="saxon.classpath"/>\r
+      <include name="*.xsl"/>\r
+      <mapper type="flatten"/>\r
+      <param name="include.output.doctype" expression="0"/>\r
+    </xslt>\r
+\r
+  </target>\r
+\r
+  <target name="clean">\r
+    <delete>\r
+      <fileset dir=".">\r
+       <include name="*.xsl"/>\r
+       <include name="docbook.css.xml"/>\r
+       <exclude name="html2xhtml.xsl"/>\r
+      </fileset>\r
+    </delete>\r
+  </target>\r
+\r
+</project>\r
diff --git a/xsl/xhtml/build.xml b/xsl/xhtml/build.xml
new file mode 100644 (file)
index 0000000..04202c1
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project name="DocBook XSLT 1.0 stylesheets - XHTML" default="all">\r
+\r
+  <property name="dbroot.dir" value="${ant.file}/../.."/>\r
+  <import file="../tools/build-shared.xml"/>\r
+\r
+  <target name="all" depends="html2xhtml">\r
+  </target>\r
+\r
+  <target name="html2xhtml">\r
+    <echo>Building XHTML stylesheets from HTML ones...</echo>\r
+    <xslt style="html2xhtml.xsl" destdir="." basedir="../html">\r
+      <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
+      <classpath refid="saxon.classpath"/>\r
+      <include name="*.xsl"/>\r
+      <mapper type="flatten"/>\r
+    </xslt>\r
+    <copy file="../html/docbook.css.xml" todir="."/>\r
+    <xslt in="../html/docbook.xsl" out="docbook-no-doctype.xsl" style="html2xhtml.xsl">\r
+      <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
+      <classpath refid="saxon.classpath"/>\r
+      <include name="*.xsl"/>\r
+      <mapper type="flatten"/>\r
+      <param name="include.output.doctype" expression="0"/>\r
+    </xslt>\r
+\r
+  </target>\r
+\r
+  <target name="clean">\r
+    <delete>\r
+      <fileset dir=".">\r
+       <include name="*.xsl"/>\r
+       <include name="docbook.css.xml"/>\r
+       <exclude name="html2xhtml.xsl"/>\r
+      </fileset>\r
+    </delete>\r
+  </target>\r
+\r
+</project>\r
diff --git a/xsl/xhtml5/build.xml b/xsl/xhtml5/build.xml
new file mode 100644 (file)
index 0000000..d22ffcb
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project name="DocBook XSLT 1.0 stylesheets - HTML5" default="all">\r
+\r
+  <property name="dbroot.dir" value="${ant.file}/../.."/>\r
+  <import file="../tools/build-shared.xml"/>\r
+\r
+  <target name="all" depends="html5">\r
+  </target>\r
+\r
+  <target name="html5">\r
+    <echo>Building HTML5 stylesheet...</echo>\r
+    <xslt in="../xhtml/docbook.xsl" out="xhtml-docbook.xsl" style="xhtml2xhtml5.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
+       <!-- FIXME -->\r
+      </fileset>\r
+    </delete>\r
+  </target>\r
+\r
+</project>\r