Tests select on p:with-input/@select resulting in an atomic value.
Test ab-with-input-select-010.xml is expected to pass.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="3.0">
<p:output port="result"/>
<p:identity>
<p:with-input select="32">
<doc/>
</p:with-input>
</p:identity>
<p:identity>
<p:with-input>
<result>{if (. instance of xs:integer) then .+10 else 0}</result>
</p:with-input>
</p:identity>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns prefix="p" uri="http://www.w3.org/ns/xproc"/>
<s:pattern>
<s:rule context="/">
<s:assert test="result">Document root is not 'result'.</s:assert>
<s:assert test="result/text()='42'">'result' does not a text child with value '42'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Fixed test as consequence of pr#1042.
Added attribute 'queryBinding' to schematron's schema.
Fixed test by declaring prefix "xs".
Changed test: Atomic values are now JSON documents.
Added test