-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate-tocs.xml
108 lines (94 loc) · 4.36 KB
/
create-tocs.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
98
99
100
101
102
103
104
105
106
107
108
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="create-tocs">
<!-- data directories -->
<property name="contentDir" value="./OEBPS"/>
<property name="textDir" value="./OEBPS/texts"/>
<!-- temporary directories -->
<property name="contentTmp" value="./OEBPS/contentTmp"/>
<delete dir="${contentTmp}"/>
<mkdir dir="${contentTmp}"/>
<property name="inhaltTmp" value="./OEBPS/texts/inhaltTmp"/>
<delete dir="${inhaltTmp}"/>
<mkdir dir="${inhaltTmp}"/>
<property name="inhaltsverzeichnisTmp" value="./OEBPS/inhaltsverzeichnisTmp"/>
<delete dir="${inhaltsverzeichnisTmp}"/>
<mkdir dir="${inhaltsverzeichnisTmp}"/>
<property name="titelTmp" value="./OEBPS/texts/titelTmp"/>
<delete dir="${titelTmp}"/>
<mkdir dir="${titelTmp}"/>
<property name="toc-yearsTmp" value="./OEBPS/texts/toc-yearsTmp"/>
<delete dir="${toc-yearsTmp}"/>
<mkdir dir="${toc-yearsTmp}"/>
<!-- transform OEBPS/content.opf with create-content.xsl -->
<xslt style="./xslt/create-content.xsl" destdir="${contentTmp}" basedir="${contentDir}"
includes="content.opf" extension=".opf">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="./saxon/saxon-he-11.6.jar"/>
</xslt>
<move todir="${contentDir}">
<fileset dir="${contentTmp}"/>
</move>
<delete dir="${contentTmp}"/>
<!-- transform OEBPS/texts/inhaltsverzeichnis.ncx with create-inhaltsverzeichnis-1.xsl -->
<xslt style="./xslt/create-inhaltsverzeichnis-1.xsl" destdir="${inhaltsverzeichnisTmp}"
basedir="${contentDir}" includes="inhaltsverzeichnis.ncx" extension=".ncx">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="./saxon/saxon-he-11.6.jar"/>
</xslt>
<move todir="${contentDir}">
<fileset dir="${inhaltsverzeichnisTmp}"/>
</move>
<delete dir="${inhaltsverzeichnisTmp}"/>
<mkdir dir="${inhaltsverzeichnisTmp}"/>
<!-- transform OEBPS/texts/inhaltsverzeichnis.ncx with create-inhaltsverzeichnis-2.xsl -->
<xslt style="./xslt/create-inhaltsverzeichnis-2.xsl" destdir="${inhaltsverzeichnisTmp}"
basedir="${contentDir}" includes="inhaltsverzeichnis.ncx" extension=".ncx">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="./saxon/saxon-he-11.6.jar"/>
</xslt>
<move todir="${contentDir}">
<fileset dir="${inhaltsverzeichnisTmp}"/>
</move>
<delete dir="${inhaltsverzeichnisTmp}"/>
<!-- transform OEBPS/texts/titel.xhtml with create-titel.xsl -->
<xslt style="./xslt/create-titel.xsl" destdir="${titelTmp}" basedir="${textDir}"
includes="titel.xhtml" extension=".xhtml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="./saxon/saxon-he-11.6.jar"/>
</xslt>
<move todir="${textDir}">
<fileset dir="${titelTmp}"/>
</move>
<delete dir="${titelTmp}"/>
<!-- transform OEBPS/texts/toc-years.xhtml with create-toc-years-1.xsl -->
<xslt style="./xslt/create-toc-years-1.xsl" destdir="${toc-yearsTmp}" basedir="${textDir}"
includes="toc-years.xhtml" extension=".xhtml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="./saxon/saxon-he-11.6.jar"/>
</xslt>
<move todir="${textDir}">
<fileset dir="${toc-yearsTmp}"/>
</move>
<delete dir="${toc-yearsTmp}"/>
<mkdir dir="${toc-yearsTmp}"/>
<!-- transform OEBPS/texts/toc-years.xhtml with create-toc-years-2.xsl -->
<xslt style="./xslt/create-toc-years-2.xsl" destdir="${toc-yearsTmp}" basedir="${textDir}"
includes="toc-years.xhtml" extension=".xhtml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="./saxon/saxon-he-11.6.jar"/>
</xslt>
<move todir="${textDir}">
<fileset dir="${toc-yearsTmp}"/>
</move>
<delete dir="${toc-yearsTmp}"/>
<!-- transform OEBPS/texts/inhalt.xhtml with create-inhalt.xsl -->
<xslt style="./xslt/create-inhalt.xsl" destdir="${inhaltTmp}" basedir="${textDir}"
includes="inhalt.xhtml" extension=".xhtml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="./saxon/saxon-he-11.6.jar"/>
</xslt>
<move todir="${textDir}">
<fileset dir="${inhaltTmp}"/>
</move>
<delete dir="${inhaltTmp}"/>
</project>