/[volute]/trunk/projects/grid/uws/doc/build.xml
ViewVC logotype

Contents of /trunk/projects/grid/uws/doc/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2637 - (show annotations)
Tue May 27 13:17:24 2014 UTC (6 years, 2 months ago) by harripa@gmail.com
File MIME type: text/plain
File size: 3816 byte(s)
set saxon attributes so that the "ignorable whitespace" (i.e. that between) elements is preserved so that document formatting is preserved for easy diff
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="UWSbuild" default="formatdoc">
3
4 <tstamp></tstamp>
5 <property name="ivoname" value="UWS"/>
6 <property name="latexlocation" location="/opt/local/bin"/>
7 <property name="docversion" value="1.1"/>
8 <property name="docdate" value="${DSTAMP}"/>
9 <property name="pubstatus" value="WD"/><!-- set to the status of the document WD, PR, REC, NOTE -->
10
11
12
13 <!-- =================================
14 target: createdoc
15 ================================= -->
16 <target name="formatdoc" description="add TOC, numbering etc">
17 <copy file="${ivoname}.html" tofile="${ivoname}-old.html"/>
18 <xslt style="ivoadoc/ivoarestructure.xslt" in="${ivoname}.html" out="${ivoname}-new.html" >
19 <factory name="net.sf.saxon.TransformerFactoryImpl" >
20 <attribute name="http://saxon.sf.net/feature/strip-whitespace"
21 value="none"/> <!-- preserve whitespace between elements -http://www.saxonica.com/documentation/sourcedocs/whitespace.html -->
22 </factory>
23
24 <param name="docversion" expression="${docversion}"/>
25 <param name="pubstatus" expression="${pubstatus}"/>
26 <param name="docdate" expression="${docdate}"/>
27
28 <xmlcatalog >
29 <catalogpath>
30 <filelist>
31 <file name="./ivoadoc/xmlcatalog/catalog.xml"/>
32 </filelist>
33 </catalogpath>
34 </xmlcatalog>
35 </xslt>
36 <copy file="${ivoname}-new.html" tofile="${ivoname}.html"/>
37
38 </target>
39
40 <target name="createPDF">
41 <xslt style="ivoadoc/ivoa-fo.xsl" in="${ivoname}.html" out="out.fo" force="true">
42 <factory name="net.sf.saxon.TransformerFactoryImpl" >
43 </factory>
44 <param name="page-width" expression="210mm"/>
45 <param name="page-height" expression="297mm"/>
46 <param name="global-font-size" expression="11pt"/>
47 <xmlcatalog >
48 <catalogpath>
49 <filelist>
50 <file name="./ivoadoc/xmlcatalog/catalog.xml"/>
51 </filelist>
52 </catalogpath>
53 </xmlcatalog>
54 </xslt>
55 <echo>applying fop</echo>
56 <fop format="application/pdf"
57 fofile="out.fo"
58 outfile="${ivoname}.pdf" force="true" />
59 </target>
60
61 <target name="regenerateRefs">
62 <xslt style="ivoadoc/extractcite.xslt" in="${ivoname}.html" out="${ivoname}.aux" force="true" >
63 <factory name="net.sf.saxon.TransformerFactoryImpl" />
64 <param name="target" expression="aux"/>
65 <xmlcatalog >
66 <catalogpath>
67 <filelist>
68 <file name="./ivoadoc/xmlcatalog/catalog.xml"/>
69 </filelist>
70 </catalogpath>
71 </xmlcatalog>
72 </xslt>
73 <exec executable="/opt/local/bin/bibtex">
74 <env key="PATH" path="${env.PATH}:${latexlocation}"/>
75 <arg value="${ivoname}" />
76 </exec>
77 </target>
78 <!-- =================================
79 target: package
80 ================================= -->
81 <target name="package" description="create a zip file of document and associated files">
82 <tstamp></tstamp>
83 <copy file="UWS.html" tofile="${pubstatus}-UWS-${docversion}-${DSTAMP}.html"></copy>
84 <copy file="UWS.pdf" tofile="${pubstatus}-UWS-${docversion}-${DSTAMP}.pdf"></copy>
85
86 <zip destfile="uws.zip" basedir="${basedir}" includes="REC-UWS-1.0-${DSTAMP}.html, REC-UWS-1.0-${DSTAMP}.pdf, UWS.xsd,**/*.css,**/*.png,**/*.gif">
87
88 </zip>
89 </target>
90
91
92 <property name="fop.home" value="/opt/packages/fop-1.1"/>
93
94 <taskdef name="fop"
95 classname="org.apache.fop.tools.anttasks.Fop">
96 <classpath>
97 <fileset dir="${fop.home}/lib">
98 <include name="*.jar"/>
99 </fileset>
100 <fileset dir="${fop.home}/build">
101 <include name="fop.jar"/>
102 <include name="fop-hyph.jar" />
103 <include name="fop-sandbox.jar"/>
104 </fileset>
105 </classpath>
106 </taskdef>
107 </project>

Properties

Name Value
svn:mime-type text/plain

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26