Tests p:invisible (Example 1 from spec)
Test ab-i-xml-001.xml is expected to pass.
It requires the following features: p:ixml.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:output port="result"/>
<p:invisible-xml>
<p:with-input port="grammar">
<p:empty/>
</p:with-input>
<p:with-input port="source">
<p:inline content-type="text/plain">
date: s?, day, s, month, (s, year)? .
-s: -" "+ .
day: digit, digit? .
-digit: "0"; "1"; "2"; "3"; "4"; "5"; "6"; "7"; "8"; "9".
month: "January"; "February"; "March"; "April";
"May"; "June"; "July"; "August";
"September"; "October"; "November"; "December".
year: (digit, digit)?, digit, digit .
</p:inline>
</p:with-input>
</p:invisible-xml>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="ixml">The root element is not 'ixml'.</s:assert>
<s:assert test="ixml/rule">The root element does not have a 'rule' child.</s:assert>
<s:assert test="ixml/rule/@name='date'">The 'rule' element does not have an attribute 'name' with value 'date'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Changed step's name to p:invisible-xml
Initial check in.