generated from usnistgov/opensource-repo
-
Notifications
You must be signed in to change notification settings - Fork 4
/
TEST-SCHEMATRON.xpl
26 lines (21 loc) · 997 Bytes
/
TEST-SCHEMATRON.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
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0"
xmlns:ox="http://csrc.nist.gov/ns/oscal-xproc3"
type="ox:TEST-SCHEMATRON"
name="TEST-SCHEMATRON">
<p:output port="result" serialization="map{'indent' : true(), 'omit-xml-declaration': true() }" />
<!-- /end prologue -->
<!-- assert-valid='false' returns the input document
with validation messages (SVRL) on another port
see https://spec.xproc.org/master/head/validation/#c.validate-with-schematron
-->
<p:validate-with-schematron assert-valid="true"
message="[TEST-SCHEMATRON] Running a Schematron, expecting to see no errors ...">
<p:with-input port="schema" href="src/doing-well.sch"/>
<p:with-input port="source">
<p:inline>
<CONGRATULATIONS>Schematron runs under XProc 3.0.</CONGRATULATIONS>
</p:inline>
</p:with-input>
</p:validate-with-schematron>
<p:namespace-delete prefixes="ox"/>
</p:declare-step>