-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathLMNL-wf-check.xpl
75 lines (57 loc) · 2.11 KB
/
LMNL-wf-check.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
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step version="1.0"
xmlns:p="http://www.w3.org/ns/xproc"
xmlns:c="http://www.w3.org/ns/xproc-step"
xmlns:lmnl="http://lmnl-markup.net/ns/xproc-extensions"
name="LMNL-wf-check" type="lmnl:LMNL-wf-check">
<!--<p:output port="raw-svrl" primary="false">
<p:pipe port="report" step="validate-wf-tagging"/>
</p:output>-->
<!--<p:option name="lmnl-file" required="true"/>-->
<p:serialization port="wf-check" method="text"
omit-xml-declaration="true" indent="false"/>
<p:input port="source"/>
<p:input kind="parameter" port="parameters" primary="true"/>
<p:output port="wf-check" primary="true">
<p:pipe port="result" step="wf-report"/>
</p:output>
<p:import href="LMNL-xLMNL.xpl"/>
<!-- Binding LMNL file to source port using
-dtext/plain@%LMNLFILE% from command line -->
<lmnl:LMNL-xLMNL name="xLMNL"/>
<p:sink/>
<p:validate-with-schematron assert-valid="false"
name="validate-tags">
<p:input port="source">
<p:pipe port="step3-tag-sawteeth" step="xLMNL"/>
</p:input>
<p:input port="schema">
<p:document href="lib/wf-check/validate-tags.sch"/>
</p:input>
</p:validate-with-schematron>
<p:sink/>
<p:validate-with-schematron assert-valid="false"
name="validate-typing">
<p:input port="source">
<p:pipe port="step7-infer-annotations" step="xLMNL"/>
</p:input>
<p:input port="schema">
<p:document href="lib/wf-check/validate-typing.sch"/>
</p:input>
</p:validate-with-schematron>
<p:sink/>
<!-- =================================================== -->
<p:wrap-sequence name="validate-wf-tagging" wrapper="svrl"
wrapper-namespace="http://purl.oclc.org/dsdl/svrl">
<p:input port="source">
<p:pipe port="report" step="validate-tags"/>
<p:pipe port="report" step="validate-typing"/>
</p:input>
</p:wrap-sequence>
<!--<p:identity name="wf-report"/>-->
<p:xslt name="wf-report" version="2.0">
<p:input port="stylesheet">
<p:document href="lib/support/svrl-plaintext.xsl"/>
</p:input>
</p:xslt>
</p:declare-step>