Testing p:load
Test ab-load-003.xml is expected to pass.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:output port="result"/>
<p:load href="../documents/load-document-001.xml"/>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="doc">The document root is not doc.</s:assert>
<s:assert test="doc/p/text()='This is a test document'">Document does not have a p element with 'This is a test document'</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Added attribute 'queryBinding' to schematron's schema.
Ported test for p:load from 1.0 test suite.