forked from RackerWilliams/wadl-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibrary.xpl
111 lines (91 loc) · 3.84 KB
/
library.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
109
110
111
<?xml version="1.0" encoding="UTF-8"?>
<p:library xmlns:p="http://www.w3.org/ns/xproc"
xmlns:cx="http://xmlcalabash.com/ns/extensions"
xmlns:c="http://www.w3.org/ns/xproc-step"
xmlns:cxf="http://xmlcalabash.com/ns/extensions/fileutils"
xmlns:ml="http://xmlcalabash.com/ns/extensions/marklogic"
xmlns:ut="http://grtjn.nl/ns/xproc/util"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
version="1.0">
<p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl"/>
<p:declare-step
xmlns:p="http://www.w3.org/ns/xproc"
xmlns:l="http://xproc.org/library"
type="l:normalizeWadl"
xmlns:c="http://www.w3.org/ns/xproc-step"
version="1.0"
name="normalizeWadl-step">
<p:input port="source" primary="true"/>
<p:output port="secondary" primary="false" sequence="true"/>
<p:output port="result" primary="true" >
<p:pipe step="normalizeWadl-xslt" port="result"/>
</p:output>
<p:input port="parameters" kind="parameter"/>
<p:xslt name="normalizeWadl-xslt">
<p:input port="source">
<p:pipe step="normalizeWadl-step" port="source"/>
</p:input>
<p:input port="stylesheet">
<p:document href="xsl/normalizeWadl.xsl"/>
</p:input>
<p:input port="parameters" >
<p:inline>
<c:param-set>
<c:param name="format" value="path-format"/>
</c:param-set>
</p:inline>
<!--<p:pipe step="normalizeWadl-step" port="parameters"/>-->
</p:input>
</p:xslt>
</p:declare-step>
<p:declare-step
xmlns:p="http://www.w3.org/ns/xproc"
xmlns:l="http://xproc.org/library"
type="l:wadl2apiary-jsonx"
xmlns:c="http://www.w3.org/ns/xproc-step"
version="1.0"
name="wadl2apiary-jsonx-step">
<p:input port="source" primary="true"/>
<p:output port="secondary" primary="false" sequence="true"/>
<p:output port="result" primary="true" >
<p:pipe step="wadl2apiary-jsonx-xslt" port="result"/>
</p:output>
<p:input port="parameters" kind="parameter"/>
<p:xslt name="wadl2apiary-jsonx-xslt">
<p:input port="source">
<p:pipe step="wadl2apiary-jsonx-step" port="source"/>
</p:input>
<p:input port="stylesheet">
<p:document href="xsl/wadl2apiary-jsonx.xsl"/>
</p:input>
<p:input port="parameters" >
<p:pipe step="wadl2apiary-jsonx-step" port="parameters"/>
</p:input>
</p:xslt>
</p:declare-step>
<p:declare-step
xmlns:p="http://www.w3.org/ns/xproc"
xmlns:l="http://xproc.org/library"
type="l:jsonx2json"
xmlns:c="http://www.w3.org/ns/xproc-step"
version="1.0"
name="jsonx2json-step">
<p:input port="source" primary="true"/>
<p:output port="secondary" primary="false" sequence="true"/>
<p:output port="result" primary="true" >
<p:pipe step="jsonx2json-xslt" port="result"/>
</p:output>
<p:input port="parameters" kind="parameter"/>
<p:xslt name="jsonx2json-xslt">
<p:input port="source">
<p:pipe step="jsonx2json-step" port="source"/>
</p:input>
<p:input port="stylesheet">
<p:document href="xsl/jsonx2json.xsl"/>
</p:input>
<p:input port="parameters" >
<p:pipe step="jsonx2json-step" port="parameters"/>
</p:input>
</p:xslt>
</p:declare-step>
</p:library>