-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathreading-text-extras.xpl
95 lines (85 loc) · 4.25 KB
/
reading-text-extras.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
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:f="http://www.faustedition.net/ns"
xmlns:c="http://www.w3.org/ns/xproc-step"
name="main" type="f:reading-text-extras"
version="1.0">
<p:input port="source">
<p:documentation>Reading text</p:documentation>
</p:input>
<p:output port="result" sequence="true" primary="true"><p:empty/></p:output>
<p:output port="citations">
<p:pipe port="result" step="citations"/>
</p:output>
<p:option name="paths" select="'paths.xml'"/>
<p:identity name="generate-reading-text"/>
<!-- Konfiguration laden -->
<p:xslt name="config" template-name="param">
<p:input port="source"><p:empty/></p:input>
<p:input port="stylesheet"><p:document href="xslt/config.xsl"/></p:input>
<p:with-param name="path_config" select="$paths"></p:with-param>
</p:xslt>
<p:group>
<p:variable name="builddir" select="//c:param[@name='builddir']/@value"/>
<!-- ### Step 3c: Reading text apparatus list -->
<p:xslt name="reading-text-md">
<p:input port="source"><p:pipe port="result" step="generate-reading-text"/></p:input>
<p:input port="stylesheet"><p:document href="xslt/add-metadata.xsl"/></p:input>
<p:input port="parameters"><p:pipe port="result" step="config"/></p:input>
<p:with-param name="type" select="'lesetext'"/>
<p:with-param name="sigil_t" select="'faust'"/>
</p:xslt>
<p:xslt>
<p:input port="stylesheet"><p:document href="xslt/text-applist.xsl"/></p:input>
<p:input port="parameters"><p:pipe port="result" step="config"/></p:input>
</p:xslt>
<p:store method="xhtml">
<p:with-option name="href" select="resolve-uri('www/print/app.html', $builddir)"/>
</p:store>
<p:store>
<p:input port="source"><p:pipe port="result" step="reading-text-md"/></p:input>
<p:with-option name="href" select="resolve-uri('lesetext/faust-md.xml', $builddir)"/>
</p:store>
<!-- ### Step 3c': Reading text apparatus reflist -->
<p:xslt>
<p:input port="source"><p:pipe port="result" step="reading-text-md"/></p:input>
<p:input port="stylesheet"><p:document href="xslt/text-applist.xsl"/></p:input>
<p:input port="parameters"><p:pipe port="result" step="config"/></p:input>
<p:with-param name="output-type" select="'reflist'"></p:with-param>
</p:xslt>
<p:store method="xhtml">
<p:with-option name="href" select="resolve-uri('www/print/reflist.html', $builddir)"/>
</p:store>
<!-- ### Step 3c'': Reading text app list by scene instead -->
<p:xslt>
<p:input port="source"><p:pipe port="result" step="reading-text-md"/></p:input>
<p:input port="stylesheet"><p:document href="xslt/text-applist.xsl"/></p:input>
<p:input port="parameters"><p:pipe port="result" step="config"/></p:input>
<p:with-param name="output-type" select="'byscene'"></p:with-param>
</p:xslt>
<p:store method="xhtml">
<p:with-option name="href" select="resolve-uri('www/print/app-by-scene.html', $builddir)"/>
</p:store>
<!-- ### Step 3d: Reading text word index -->
<p:xslt>
<p:input port="source"><p:pipe port="result" step="reading-text-md"/></p:input>
<p:input port="stylesheet"><p:document href="xslt/word-index.xsl"></p:document></p:input>
<p:input port="parameters"><p:pipe port="result" step="config"></p:pipe></p:input>
<p:with-param name="limit" select="0"/>
<p:with-param name="title" select="'Tokens im Text'"/>
</p:xslt>
<p:store method="xhtml">
<p:with-option name="href" select="resolve-uri('www/print/faust.wordlist.html', $builddir)"/>
</p:store>
<p:xslt name="reading-text-citations">
<p:input port="source"><p:pipe port="result" step="reading-text-md"></p:pipe></p:input>
<p:input port="stylesheet"><p:document href="xslt/text-extract-citations.xsl"/></p:input>
<p:with-param name="path_config" select="$paths"/>
</p:xslt>
<p:store method="xml">
<p:with-option name="href" select="resolve-uri('bibliography/cit-text.xml', $builddir)"/>
</p:store>
<p:identity><p:input port="source"><p:pipe port="result" step="reading-text-citations"/></p:input></p:identity>
</p:group>
<p:identity name="citations"/>
</p:declare-step>