p:choose-040 (AB)
Test is expected to fail with error code err:XS0077.
The pipeline
<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
xmlns:p="http://www.w3.org/ns/xproc"
xmlns:t="http://xproc.org/ns/testsuite/3.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema" version="3.0">
<p:output port="result"/>
<p:variable name="selector" select="false()"
as="xs:boolean"/>
<p:identity>
<p:with-input>
<doc1/>
<doc2/>
</p:with-input>
</p:identity>
<p:choose>
<p:when test="count(collection())=2"
collection="{not($selector)}">
<p:identity>
<p:with-input>
<correct/>
</p:with-input>
</p:identity>
</p:when>
</p:choose>
</p:declare-step>
Revision history
- 26 Aug 2021, Achim Berndzen
Changed test because @collection may no longer be an AVT. Error needs to be raised now. - 10 Jun 2021, Achim Berndzen
Added attribute 'queryBinding' to schematron's schema. - 20 Jul 2019, Achim Berndzen
Fixed test by declaring xs-namespace. - 05 Apr 2019, Achim Berndzen
New tests