Statistics
| Revision:

root / tmp / org.txm.core / res / org / txm / xml / xsl / tei / docbook / build-from.xml @ 187

History | View | Annotate | Download (2.6 kB)

1
<?xml version="1.0" encoding="utf-8"?>
2
<project basedir="." default="dist" name="teitohtml">
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 9886 2011-12-04 22:50:41Z rahtz $
19
        Copyright: 2011, TEI Consortium<
20
-->
21
  <!--
22
 Convert Docbook documents into TEI files.
23
 -->
24
  <!-- Path to Docbook XML file. -->
25
  <property name="inputFile" value=""/>
26
  <!-- Path where the output TEI file will be saved. -->
27
  <property name="outputFile" value=""/>
28
  <!-- which profile -->
29
  <property name="profile" value="default"/>
30
  <!-- where does oxygen keep stuff -->
31
  <property name="oxygenlib" value=""/>
32
  <!-- Stylesheet for transformation -->
33
  <property name="docbook2tei"
34
            value="../profiles/${profile}/docbook/from.xsl"/>
35
  <dirname property="inputFileDir" file="${inputFile}"/>
36
  <dirname property="outputDir" file="${outputFile}"/>
37
  <property name="outputTempDir" value="${outputDir}/temp-dir-for-ant"/>
38
  <path id="classpath">
39
    <pathelement path="${java.class.path}"/>
40
  </path>
41
  <target name="dist" depends="convert"/>
42

    
43
  <target name="convert">
44
    <echo level="info">XSLT generate TEI files</echo>
45
    <xslt force="yes" style="${docbook2tei}" in="${inputFile}" out="${outputFile}" classpath="classpath">
46
      <xmlcatalog>
47
        <catalogpath>
48
          <pathelement location="../../../../catalog.xml"/>
49
          <pathelement location="../../../../../xhtml11/dtd/xhtmlcatalog.xml"/>
50
        </catalogpath>
51
      </xmlcatalog>
52
      <factory name="net.sf.saxon.TransformerFactoryImpl"/>
53
      <classpath location="${oxygenlib}/saxon9ee.jar"/>
54
      <param name="directory" expression="file:///${outputTempDir}"/>
55
      <!-- emit some diagnostics"-->
56
      <param name="debug" expression="${debug}" if="debug"/>
57
      <!-- be verbose-->
58
      <param name="verbose" expression="${verbose}" if="verbose"/>
59
    </xslt>
60
  </target>
61

    
62
</project>