| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<project name="DocBook XSLT 1.0 stylesheets - Shared settings" default="all"> |
| 3 |
|
| 4 |
<property name="dbroot.dir" value="${ant.file}/.."/> |
| 5 |
<property name="libs" value="${dbroot.dir}/tools/lib"/> |
| 6 |
<property name="saxon9.jar" value="${libs}/saxon9he.jar"/> |
| 7 |
<property name="saxon.jar" value="${libs}/saxon.jar"/> |
| 8 |
<property name="xalan.jar" value="${libs}/xalan/xalan.jar"/> |
| 9 |
<property name="xerces.jar" value="${libs}/xercesImpl.jar"/> |
| 10 |
<property name="saxon-ant.jar" value="${libs}/saxon9-ant.jar"/> |
| 11 |
<property name="jing.jar" value="${libs}/jing.jar"/> |
| 12 |
<property name="ant-contrib.jar" value="${libs}/ant-contrib-1.0b3.jar"/> |
| 13 |
|
| 14 |
<property name="extensions.jar" |
| 15 |
value="${dbroot.dir}/extensions/saxon65.jar"/> |
| 16 |
|
| 17 |
<taskdef name="jing" |
| 18 |
classname="com.thaiopensource.relaxng.util.JingTask" |
| 19 |
classpath="${jing.jar}"/> |
| 20 |
|
| 21 |
<path id="saxon9.classpath"> |
| 22 |
<pathelement location="${saxon9.jar}"/> |
| 23 |
<pathelement location="${saxon-ant.jar}"/> |
| 24 |
</path> |
| 25 |
|
| 26 |
<path id="saxon.classpath"> |
| 27 |
<pathelement location="${xerces.jar}"/> |
| 28 |
<pathelement location="${saxon.jar}"/> |
| 29 |
<pathelement location="${extensions.jar}"/> |
| 30 |
</path> |
| 31 |
|
| 32 |
<path id="xalan.classpath"> |
| 33 |
<pathelement location="${xerces.jar}"/> |
| 34 |
<pathelement location="${xalan.jar}"/> |
| 35 |
<pathelement location="${libs}/xalan/serializer.jar"/> |
| 36 |
<pathelement location="${libs}/xalan/xsltc.jar"/> |
| 37 |
<pathelement location="${extensions.jar}"/> |
| 38 |
</path> |
| 39 |
|
| 40 |
<path id="calabash.classpath"> |
| 41 |
<pathelement location="${saxon9.jar}"/> |
| 42 |
<pathelement location="${saxon-ant.jar}"/> |
| 43 |
<pathelement location="${extensions.jar}"/> |
| 44 |
<pathelement location="${libs}/calabash.jar"/> |
| 45 |
<pathelement location="${libs}/xmlresolver.jar"/> |
| 46 |
<pathelement location="${libs}/commons-codec-1.3.jar"/> |
| 47 |
<pathelement location="${libs}/commons-httpclient-3.1.jar"/> |
| 48 |
<pathelement location="${libs}/commons-logging-1.1.1.jar"/> |
| 49 |
</path> |
| 50 |
|
| 51 |
<taskdef name="xslt2" |
| 52 |
classname="net.sf.saxon.ant.AntTransform"> |
| 53 |
<classpath refid="saxon9.classpath"/> |
| 54 |
</taskdef> |
| 55 |
|
| 56 |
<target name="build-params"> |
| 57 |
<property name="file" value="param"/> |
| 58 |
<!-- FIXME parameter checking --> |
| 59 |
<xslt in="${file}.xweb" out=".${file}.profiled" style="../profiling/profile.xsl"> |
| 60 |
<factory name="com.icl.saxon.TransformerFactoryImpl"/> |
| 61 |
<classpath refid="saxon.classpath"/> |
| 62 |
<param name="profile.condition" expression="${condition}"/> |
| 63 |
</xslt> |
| 64 |
<xslt in=".${file}.profiled" out=".${file}.stripped" style="../profiling/strip-attributes.xsl"> |
| 65 |
<factory name="com.icl.saxon.TransformerFactoryImpl"/> |
| 66 |
<classpath refid="saxon.classpath"/> |
| 67 |
<param name="attributes" expression="condition"/> |
| 68 |
</xslt> |
| 69 |
<xslt in=".${file}.stripped" out=".${file}.dbkns" style="../../releasetools/xtangle.xsl"> |
| 70 |
<factory name="com.icl.saxon.TransformerFactoryImpl"/> |
| 71 |
<classpath refid="saxon.classpath"/> |
| 72 |
</xslt> |
| 73 |
<xslt in=".${file}.dbkns" out="${file}.xsl.tmp" style="../tools/xsl/build/fix-params-ns.xsl"> |
| 74 |
<factory name="com.icl.saxon.TransformerFactoryImpl"/> |
| 75 |
<classpath refid="saxon.classpath"/> |
| 76 |
</xslt> |
| 77 |
<xslt in="${file}.xsl.tmp" out="${file}.xsl" style="../tools/xsl/build/addnewline.xsl"> |
| 78 |
<factory name="com.icl.saxon.TransformerFactoryImpl"/> |
| 79 |
<classpath refid="saxon.classpath"/> |
| 80 |
</xslt> |
| 81 |
</target> |
| 82 |
|
| 83 |
<target name="clean-params"> |
| 84 |
<property name="file" value="param"/> |
| 85 |
<delete> |
| 86 |
<fileset dir="."> |
| 87 |
<include name=".${file}.profiled"/> |
| 88 |
<include name=".${file}.stripped"/> |
| 89 |
<include name=".${file}.dbkns"/> |
| 90 |
<include name="${file}.xsl.tmp"/> |
| 91 |
<include name="${file}.xsl"/> |
| 92 |
</fileset> |
| 93 |
</delete> |
| 94 |
</target> |
| 95 |
|
| 96 |
</project> |