xmlnt-010
Test that the xml: prefix works,
#258.
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/xmlid.xml"
parameters="map { 'cx:xmlnt': true() }"/>
</p:declare-step>
Result
<doc xmlns:t="http://xproc.org/ns/testsuite/3.0"
xml:id="test"/>
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="doc">The root is wrong.</s:assert>
<s:assert test="doc/@xml:id = 'test'">The xml:id is wrong.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Revision history
- 04 Oct 2025, Norm Tovey-Walsh
- Created test.