-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
97 lines (97 loc) · 4.16 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="tei2html">
<property name="index" value="./data/meta/about.xml"/>
<property name="target" value="./html"/>
<property name="indices" value="./data/indices"/>
<property name="xsl_indices" value="./xslt/indices.xsl"/>
<property name="xsl_entities" value="./xslt/entities.xsl"/>
<delete>
<fileset dir="${target}" includes="*.html"/>
<fileset dir="${target}" includes="*.xml"/>
<fileset dir="${target}" includes="*.rdf"/>
</delete>
<delete dir="${target}/static-search"/>
<xslt style="./xslt/editions.xsl" basedir="./data/editions/critical" destdir="${target}" includes="*.xml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
<xslt style="./xslt/editions_plain.xsl" basedir="./data/editions/plain" destdir="${target}" includes="*.xml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
<xslt style="./xslt/meta.xsl" basedir="./data/meta" destdir="${target}" includes="*.xml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
<xslt in="${index}" out="${target}/index.html" style="./xslt/index.xsl">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
<xslt in="${index}" out="${target}/toc.html" style="./xslt/toc.xsl">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
<xslt in="${index}" out="${target}/toc-ocr.html" style="./xslt/toc_ocr.xsl">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
<xslt in="${index}" out="${target}/search.html" style="./xslt/search.xsl">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
<xslt in="./data/imprint.xml" out="${target}/imprint.html" style="./xslt/imprint.xsl">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
<xslt style="${xsl_entities}" basedir="${indices}" destdir="${target}" includes="*.xml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
<delete>
<fileset dir="${target}" includes="listbibl.html"/>
</delete>
<delete>
<fileset dir="${target}" includes="listplace.html"/>
</delete>
<delete>
<fileset dir="${target}" includes="listperson.html"/>
</delete>
<delete>
<fileset dir="${target}" includes="listorg.html"/>
</delete>
<delete>
<fileset dir="${target}" includes="listkey.html"/>
</delete>
<delete>
<fileset dir="${target}" includes="listdream.html"/>
</delete>
<xslt style="${xsl_indices}" basedir="${indices}" destdir="${target}" includes="*.xml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
<replace dir="${target}" value="">
<include name="*.html"/>
<replacetoken> xmlns=""</replacetoken>
</replace>
<replace dir="${target}" value="">
<include name="*.html"/>
<replacetoken>xmlns:tei="http://www.tei-c.org/ns/1.0"</replacetoken>
</replace>
<replace dir="${target}" value="">
<include name="*.html"/>
<replacetoken><br ></replacetoken>
</replace>
<replace dir="${target}" value="">
<include name="*.html"/>
<replacetoken><br></replacetoken>
</replace>
<replace dir="${target}" value="<br />">
<include name="*.html"/>
<replacetoken></br></replacetoken>
</replace>
<copy todir="${target}" flatten="true">
<fileset dir="./data/">
<include name="**/*.xml"/>
</fileset>
</copy>
</project>