-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-diplomatic.xml
52 lines (47 loc) · 2.41 KB
/
build-diplomatic.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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="diplomatic-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" />
<fileset id="diplomaticFiles" dir="./editions" includes="DHARMA_DiplEd*.xml" excludes="*_biblio.xml *_trans*.xml _com*.xml"/>
<!-- Transformation XML vers HTML -->
<xslt force="true" style="./project-documentation/stylesheets/diplomaticEditions/start-diplEd.xsl" destdir="./output/diplomatic-edition" 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="diplomaticFiles"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<!-- <regexpmapper from="(.*).xml" to="\1-physical.html"/> -->
</xslt>
<!-- <xslt force="true" style="project-documentation/stylesheets/diplomaticEditions/start-diplEd.xsl" destdir="output/diplomatic-edition" extension=".html" useImplicitFileset="false" classpath="project-documentation/editorialStylesheets/pipelineTools/saxon9he.jar">
<param name="edition-type" expression="logical"/>
<param name="corpus-type" expression="nusantara"/>
<fileset refid="diplomaticFiles"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<regexpmapper from="(.*).xml" to="\1-logical.html"/>
</xslt> -->
</project>