Import-018 (AB)

Tests repeated import of library with static option.

Test ab-import-018.xml is expected to pass.

The pipeline


<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:test="http://test" version="3.0">
   <p:import href="../pipelines/ab-library-027.xpl"/>
   <p:output port="result"/>
   <p:declare-step type="test:step">
      <p:import href="../pipelines/ab-library-027.xpl"/>
      <p:output port="result"/>
      <p:identity>
         <p:with-input>
            <doc>{$imported-option}</doc>
         </p:with-input>
      </p:identity>
   </p:declare-step>
   <test:step/>
   <p:add-attribute match="/*" attribute-name="att" attribute-value="{$imported-option}"/>
</p:declare-step>
MorganaXProc passing XML Calabash failing

Schematron validation


<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <s:pattern>
      <s:rule context="/">
         <s:assert test="doc">The root element is not 'doc'.</s:assert>
         <s:assert test="doc/text()='42'">The text child of doc is not the correct answer.</s:assert>
         <s:assert test="doc/@att='42'">There is no attribute 'att' or @att does not give the right answer.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

30 Jan 2022, Achim Berndzen

Added test.