Test p:validate-with-xml-schema with try-namespaces
Test ab-validate-with-xsd-007.xml is expected to pass.
It requires the following features: p-validate-with-xsd.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
<p:output port="result"/>
<p:validate-with-xml-schema try-namespaces="true">
<p:with-input port="source" href="../documents/document-ns.xml"/>
<p:with-input port="schema">
<p:empty/>
</p:with-input>
</p:validate-with-xml-schema>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns prefix="x" uri="https://test-suite.xproc.org/test-suite/documents/document-ns.xsd"/>
<s:pattern>
<s:rule context="/">
<s:assert test="x:doc">The element root is not “doc”.</s:assert>
<s:assert test="x:doc/x:p">Element root does not have child 'p'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Added attribute 'queryBinding' to schematron's schema.
Initial publication