-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathapply-edits.xpl
108 lines (96 loc) · 2.73 KB
/
apply-edits.xpl
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"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="http://www.w3.org/ns/xproc-step"
xmlns:f="http://www.faustedition.net/ns" xmlns:tei="http://www.tei-c.org/ns/1.0"
version="1.0" type="f:apply-edits">
<p:input port="source" primary="true"/>
<p:output port="result" primary="true"/>
<p:output port="emended-version">
<p:pipe port="result" step="emended-version"/>
</p:output>
<p:documentation> Applies the edits to one single document </p:documentation>
<p:xslt name="normalize-characters">
<p:input port="stylesheet">
<p:document href="xslt/normalize-characters.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:xslt name="pre-transpose">
<p:input port="stylesheet">
<p:document href="xslt/textTranscr_pre_transpose.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:xslt name="transpose">
<p:input port="stylesheet">
<p:document href="xslt/textTranscr_transpose.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:xslt initial-mode="emend" name="emend-core">
<p:input port="stylesheet">
<p:document href="xslt/emend-core.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:choose>
<p:when test="//tei:delSpan | //tei:modSpan | //tei:addSpan">
<p:xslt name="emend-spans">
<p:input port="stylesheet">
<p:document href="xslt/text-emend.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
</p:when>
<p:otherwise>
<p:identity/>
</p:otherwise>
</p:choose>
<!--
<p:xslt name="clean-up">
<p:input port="stylesheet">
<p:document href="xslt/clean-up.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
-->
<p:xslt name="fix-punct-wsp">
<p:input port="stylesheet">
<p:document href="xslt/fix-punct-wsp.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:identity name="emended-version"/>
<p:xslt name="prose-to-lines">
<p:input port="source">
<p:pipe port="result" step="emended-version"/>
</p:input>
<p:input port="stylesheet">
<p:document href="xslt/prose-to-lines.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:xslt name="harmonize-antilabes">
<p:input port="stylesheet">
<p:document href="xslt/harmonize-antilabes.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
</p:declare-step>