dleslie 01/01/11 10:38:53
Modified: java build.xml
Log:
Include target for building print doc. Not yet for distribution.
Also updated xalanonly-styledocs.
Revision Changes Path
1.69 +35 -4 xml-xalan/java/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/build.xml,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- build.xml 2001/01/10 17:54:43 1.68
+++ build.xml 2001/01/11 18:38:49 1.69
@@ -43,7 +43,7 @@
- Much of this file stolen from Stefano's xml-xerces build.xml
- $Id: build.xml,v 1.68 2001/01/10 17:54:43 dleslie Exp $
+ $Id: build.xml,v 1.69 2001/01/11 18:38:49 dleslie Exp $
==================================================================== -->
@@ -562,10 +562,41 @@
<!-- ===================================================================
-->
<target name="xalan-j2-design">
<java fork="yes" classname="${doc.generator}"
classpath="${java.class.path}:${build.dir}/xalan.jar">
- <arg line="loaderConfig=sbk:/style/loaderdesign.xml
targetDirectory=./build/docs/design/
- ./xdocs/sources/xalandesign.xml ./xdocs/style"/>
+ <arg line="loaderConfig=sbk:/style/loaderdesign.xml
targetDirectory=${build.dir}/docs/design/
+ ${xdocs.dir}/sources/xalandesign.xml ${xdocs.style}"/>
</java>
</target>
-
+ <!-- ===================================================================
-->
+ <!-- Use FOP to create preliminary print (pdf) doc
-->
+ <!-- Note: fop.jar and xml.jar (from xml-fop) must be on classpath
-->
+
+ <!-- This is VERY preliminary, not yet for inclusion in distribution
-->
+ <!-- ===================================================================
-->
+
+ <!--Collate the xml sources into a single xml source with a litle extra
structure -->
+ <target name="print.docs">
+ <echo message="fop.jar and xml.jar must be on the classpath"/>
+ <java fork="yes" classname="org.apache.xalan.xslt.Process"
+ classpath="${java.class.path}:${build.dir}/xalan.jar">
+ <arg line="-xsl ${xdocs.dir}/sources/xalan-collate.xsl
+ -out ${xdocs.dir}/sources/xalan/xalan-collate.xml"/>
+ </java>
+
+ <!-- Transform collation into Formatting Objects
+ (with a little work on links along the way) -->
+ <java fork="yes" classname="org.apache.xalan.xslt.Process"
+ classpath="${java.class.path}:${build.dir}/xalan.jar">
+ <arg line="-in ${xdocs.dir}/sources/xalan/xalan-collate.xml
+ -xsl ${xdocs.style}/stylesheets/xml2fo.xsl
+ -out ${build.docs}/xalan-collate.fo"/>
+ </java>
+
+ <!-- Use FOP to generate a pdf file -->
+ <java fork="yes" classname="org.apache.fop.apps.CommandLine"
+
classpath="${java.class.path}:${build.dir}/xalan.jar:${bin.dir}/fop.jar:${bin.dir}/w3c.jar">
+ <arg line="${build.docs}/xalan-collate.fo build/docs/xalan.pdf"/>
+ </java>
+ </target>
+
</project>