xmlnt-008
Tests that we can parse PE-delimited marked sections.
Test is expected to pass.
The pipeline
<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions"
xmlns:p="http://www.w3.org/ns/xproc"
xmlns:t="http://xproc.org/ns/testsuite/3.0" name="main" version="3.0">
<p:output port="result" sequence="true"/>
<p:load href="../documents/xmlnt/ms-draft.xml"
parameters="map { 'cx:xmlnt': true() }"/>
</p:declare-step>
Result
<book xmlns:t="http://xproc.org/ns/testsuite/3.0"
status="DRAFT">
<comments>This is a draft.</comments>
<title>Some title</title>
<body>
<p>Some paragraph.</p>
</body>
</book>
Schematron checks
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron"
xmlns:t="http://xproc.org/ns/testsuite/3.0" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="book">The root is wrong.</s:assert>
<s:assert test="book/@status = 'DRAFT'">The status is wrong.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Revision history
- 08 Sep 2025, Norm Tovey-Walsh
- Created test.