Tests select on p:with-input/@select resulting in an atomic value.

Test ab-with-input-select-010.xml is expected to pass.

The pipeline

      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
            <p:output port="result"/>
            <p:with-input select="32">
            <p:with-input><result xmlns="">{if (. instance of xs:integer) then .+10 else 0}</result></p:with-input>
MorganaXProc passing XML Calabash failing

Schematron validation

      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <s:ns prefix="p" uri="http://www.w3.org/ns/xproc"/>
            <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>

Revision history

14 Dec 2019, Achim Berndzen

Fixed test by declaring prefix "xs".

13 Jul 2019, Achim Berndzen

Changed test: Atomic values are now JSON documents.

12 Jan 2019, Achim Berndzen

Added test