forked from wendellpiez/metaschema-xslt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMETASCHEMA-ALL-SCHEMAS.xpl
76 lines (58 loc) · 2.47 KB
/
METASCHEMA-ALL-SCHEMAS.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
<?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" version="1.0"
xmlns:metaschema="http://csrc.nist.gov/ns/metaschema/1.0"
type="metaschema:METASCHEMA-ALL-SCHEMAS" name="METASCHEMA-ALL-SCHEMAS">
<!-- &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& -->
<!-- Ports -->
<p:input port="METASCHEMA" primary="true"/>
<p:input port="parameters" kind="parameter"/>
<p:serialization port="INT_0_echo-input" indent="true" method="xml"/>
<p:output port="INT_0_echo-input" primary="false">
<p:pipe port="result" step="echo-input"/>
</p:output>
<p:serialization port="INT_1_composed-metaschema" indent="true" method="xml"/>
<p:output port="INT_1_composed-metaschema" primary="false">
<p:pipe port="result" step="composed"/>
</p:output>
<p:serialization port="OUT_json-schema-xml" indent="true" method="xml"/>
<p:output port="OUT_json-schema-xml" primary="false">
<p:pipe port="result" step="make-json-schema-xml"/>
</p:output>
<p:serialization port="OUT_json-schema" indent="true" method="text" omit-xml-declaration="false"/>
<p:output port="OUT_json-schema" primary="true">
<p:pipe port="result" step="serialize-json"/>
</p:output>
<p:serialization port="OUT_xml-schema" indent="true" method="xml"/>
<p:output port="OUT_xml-schema" primary="false">
<p:pipe port="result" step="make-xsd"/>
</p:output>
<!-- &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& -->
<!-- Import (subpipeline) -->
<p:import href="../compose/metaschema-compose.xpl"/>
<!-- &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& -->
<!-- Pipeline -->
<p:identity name="echo-input"/>
<metaschema:metaschema-compose name="compose"/>
<p:identity name="composed"/>
<p:xslt name="make-xsd">
<p:input port="stylesheet">
<p:document href="XSD/make-metaschema-xsd.xsl"/>
</p:input>
</p:xslt>
<p:sink/>
<p:xslt name="make-json-schema-xml">
<p:input port="source">
<p:pipe port="result" step="composed"/>
</p:input>
<p:input port="stylesheet">
<p:document href="JSON-schema/make-json-schema-metamap.xsl"/>
</p:input>
</p:xslt>
<!--<p:identity name="serialize-json"/>-->
<p:xslt name="serialize-json">
<p:input port="stylesheet">
<p:document href="../common/xpath-json-to-json.xsl"/>
</p:input>
</p:xslt>
</p:declare-step>