Test cx:until
Test cx-until-002.xml is expected to pass.
<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions" xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="3.0">
<p:output port="result"/>
<cx:until test="node-name($cx:previous/*) = node-name(/*)">
<p:with-input>
<doc count="3"/>
</p:with-input>
<p:identity>
<p:with-input>
<not-doc/>
</p:with-input>
</p:identity>
</cx:until>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns prefix="fn" uri="http://www.w3.org/2005/xpath-functions"/>
<s:pattern>
<s:rule context="/">
<s:assert test="not-doc">The result isn’t not-doc.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Fixed title.
Created test.