Testing p:load
Test ab-load-007.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/address-invalid-sample.xml" parameters="map{'dtd-validate' : false()}"/>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="address1">The document root is not address.</s:assert>
<s:assert test="address1/first/text()='Jon'">Document does not have a first element with 'Jon'</s:assert>
<s:assert test="address1/last/text()='Tester'">Document does not have a last element with 'Tester'</s:assert>
<s:assert test="address1/phone/text()='5555555555'">Document does not have a phone element with '5555555555'</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.