-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-critical.xml
78 lines (69 loc) · 4.12 KB
/
build-critical.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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="critical-edition">
<!-- Macrodef taken from tlrobinson.net blog-->
<macrodef name = "git">
<attribute name = "command" />
<attribute name = "dir" default = "" />
<element name = "args" optional = "true" />
<sequential>
<echo message = "git @{command}" />
<exec executable = "git" dir = "@{dir}">
<arg value = "@{command}" />
<args/>
</exec>
</sequential>
</macrodef>
<macrodef name = "git-clone-pull">
<attribute name = "repository" />
<attribute name = "dest" />
<sequential>
<git command = "clone">
<args>
<arg value = "@{repository}" />
<arg value = "@{dest}" />
</args>
</git>
<git command = "pull" dir = "@{dest}" />
</sequential>
</macrodef>
<!-- git clone then pull -->
<git-clone-pull repository="https://github.com/erc-dharma/project-documentation.git" dest="project-documentation" />
<!-- file set for shivadharma -->
<!-- based to apply moving-app -->
<fileset id="critical-shiva-normed" dir="./texts/xml" includes="**/*_tei.xml" excludes="*_parallel.xml *_apparatus.xml *_listWit.xml"/>
<!-- based to apply ids -->
<fileset id="critical-dharma-normed" dir="./output/dharma-normed" includes="**/*.xml"/>
<!-- based to run the dispaly -->
<fileset id="critical-display" dir="./output/ids" includes="**/*.xml"/>
<!-- file set for dharma -->
<fileset id="dharma-crited" dir="./texts/xml" includes="DHARMA_CritEd*.xml" excludes="*_biblio.xml *_trans*.xml _com*.xml"/>
<fileset id="dharma-dipled" dir="./texts/xml" includes="DHARMA_DiplEd*.xml" excludes="*_biblio.xml *_trans*.xml _com*.xml"/>
<!-- Transformation from xml vers XML avec application de moving-app-->
<xslt force="true" style="./project-documentation/stylesheets/shivadharma/moving-app.xsl" destdir="./output/dharma-normed" extension=".xml" useImplicitFileset="false" classpath="./project-documentation/editorialStylesheets/pipelineTools/saxon9he.jar">
<fileset refid="critical-shiva-normed"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
<!-- Transformation XML vers xml avec ids -->
<xslt force="true" style="./project-documentation/stylesheets/varia/DHARMA_NumberingMS_v01.xsl" destdir="./output/ids" extension=".xml" useImplicitFileset="false" classpath="./project-documentation/editorialStylesheets/pipelineTools/saxon9he.jar">
<fileset refid="critical-dharma-normed"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
<!-- Transformation XML vers xml avec ids -->
<xslt force="true" style="./project-documentation/stylesheets/criticalEditions/start-edition.xsl" destdir="./output/html" extension=".html" useImplicitFileset="false" classpath="./project-documentation/editorialStylesheets/pipelineTools/saxon9he.jar">
<fileset refid="critical-display"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
<!-- Transformation XML vers HTML pour crit ed -->
<!-- TO BE ADDED WHEN NECESSARY -->
<xslt force="true" style="./project-documentation/stylesheets/criticalEditions/start-edition.xsl" destdir="./output/html" extension=".html" useImplicitFileset="false" classpath="./project-documentation/editorialStylesheets/pipelineTools/saxon9he.jar">
<fileset refid="dharma-crited"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
<!-- Transformation XML vers HTML -->
<xslt force="true" style="./project-documentation/stylesheets/diplomaticEditions/start-diplEd.xsl" destdir="./output/diplEd" extension=".html" useImplicitFileset="false" classpath="./project-documentation/editorialStylesheets/pipelineTools/saxon9he.jar">
<param name="edition-type" expression="physical"/>
<param name="corpus-type" expression="nusantara"/>
<fileset refid="dharma-dipled"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
</project>