ab-inline-019

Tests expand-text on p:input/p:inline

Test ab-inline-019.xml is expected to pass.

The pipeline


<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
   <p:input port="source">
      <p:inline expand-text="false" content-type="text/plain">{"key" : "value"}</p:inline>
   </p:input>
   <p:output port="result"/>
   <p:wrap-sequence wrapper="root"/>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Schematron validation


<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <s:pattern>
      <s:rule context="/">
         <s:assert test="root">The document root is not 'root'.</s:assert>
         <s:assert test="root/text()='{&#34;key&#34; : &#34;value&#34;}'">The text value of "string" is not "value".</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

04 Jun 2024, Achim Berndzen

Added test.