Statistics
| Revision:

root / tmp / org.txm.core / res / org / txm / xml / xsl / tei / odds2 / build-to.xml @ 187

History | View | Annotate | Download (2.7 kB)

1
<?xml version="1.0" encoding="utf-8"?>
2
<project basedir="." default="dist" name="antodd">
3
<!--
4
        This library is free software; you can redistribute it and/or
5
        modify it under the terms of the GNU Lesser General Public
6
        License as published by the Free Software Foundation; either
7
        version 2.1 of the License, or (at your option) any later version.
8
        
9
        This library is distributed in the hope that it will be useful,
10
        but WITHOUT ANY WARRANTY; without even the implied warranty of
11
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
        Lesser General Public License for more details.
13
        
14
        You should have received a copy of the GNU Lesser General Public
15
        License along with this library; if not, write to the Free Software
16
        Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
        
18
        Id: $Id: build-to.xml 9755 2011-11-15 09:07:52Z rahtz $
19
        Copyright: 2011, TEI Consortium<
20
-->
21
  <!--
22
    performs ODD processing.
23
 -->
24
  <!-- whether to make summary odd doc  -->
25
  <property name="summaryDoc" value="false"/>
26

    
27
  <property name="odd2oddxsl"      value="../odds2/odd2odd.xsl"/>
28
  <property name="odd2litexsl"     value="../odds2/odd2lite.xsl"/>
29

    
30
   <condition property="processODD">
31
    <equals arg1="${odd}" arg2="true"/>
32
  </condition>
33

    
34
  <target name="notodd" unless="processODD">
35
    <copy file="${inputFile}" tofile="${outputTempDir}/tmp2.xml" overwrite="true"/>
36
  </target>
37

    
38
  <target name="odd" if="processODD">
39
    <echo>Do ODD processing </echo>
40
    <xslt force="yes" style="${odd2oddxsl}" in="${inputFile}" out="${outputTempDir}/tmp1.xml" classpath="classpath">
41
      <xmlcatalog>
42
        <catalogpath>
43
          <pathelement location="../../../../catalog.xml"/>
44
          <pathelement location="../../../../../xhtml11/dtd/xhtmlcatalog.xml"/>
45
        </catalogpath>
46
      </xmlcatalog>
47
      <factory name="net.sf.saxon.TransformerFactoryImpl"/>
48
      <classpath location="${oxygenlib}/saxon9ee.jar"/>
49
      <param name="lang" expression="${lang}" if="lang"/>
50
      <param name="defaultSource" expression="${defaultSource}" if="defaultSource"/>
51
      <param name="verbose" expression="${verbose}" if="verbose"/>
52
    </xslt>
53
    <xslt force="yes" style="${odd2litexsl}" in="${outputTempDir}/tmp1.xml" out="${outputTempDir}/tmp2.xml" classpath="classpath">
54
      <factory name="net.sf.saxon.TransformerFactoryImpl"/>
55
      <classpath location="${oxygenlib}/saxon9ee.jar"/>
56
      <xmlcatalog>
57
        <catalogpath>
58
          <pathelement location="../../../../catalog.xml"/>
59
          <pathelement location="../../../../../xhtml11/dtd/xhtmlcatalog.xml"/>
60
        </catalogpath>
61
      </xmlcatalog>
62
      <param name="summaryDoc" expression="${summaryDoc}" if="summaryDoc"/>
63
      <param name="displayMode" expression="rnc"/>
64
    </xslt>
65
  </target>
66

    
67
</project>