nw-ns-001
Test that local namespace bindings work correctly.
Test is expected to pass.
The pipeline
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
<p:output port="result"/>
<p:option xmlns:my="http://my-ns" name="my:opt1"
select="'success'"/>
<p:identity xmlns:m="http://my-ns">
<p:with-input>
<result>{$m:opt1}</result>
</p:with-input>
</p:identity>
</p:declare-step>
Result
<result xmlns:m="http://my-ns"
xmlns:t="http://xproc.org/ns/testsuite/3.0">success</result>
Schematron checks
<s:schema xmlns="http://www.w3.org/1999/xhtml"
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="result='success'">Document content is incorrect</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Revision history
- 23 Dec 2025, Achim Berndzen
- Made relative URI in namespace declaration absolute.
- 22 Dec 2025, Norm Tovey-Walsh
- Initial commit