Tests ignoring whitespace and comments.
Test xmlunit-005.xml is expected to pass.
<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions" xmlns:cxerr="http://xmlcalabash.com/ns/error" xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0">
<p:import href="https://xmlcalabash.com/ext/library/xmlunit.xpl"/>
<p:output port="result" sequence="true"/>
<cx:xmlunit check-for="similarity" ignore-comments="true" ignore-whitespace="true">
<p:with-input port="source">
<flowers>
<flower>Daisy</flower>
<flower>Roses</flower>
<flower>Crocus</flower>
</flowers>
</p:with-input>
<p:with-input port="alternate">
<flowers>
<flower>Daisy</flower>
<flower><!--foo-->Roses</flower>
<flower>Crocus</flower>
</flowers>
</p:with-input>
</cx:xmlunit>
</p:declare-step>
<s:schema xmlns:cxerr="http://xmlcalabash.com/ns/error" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="flowers">The output is wrong.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Created test.