nw-mport-001

Test circular imports.

Test nw-import-001.xml is expected to pass.

The pipeline


<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
  <p:import href="../pipelines/nw-import-001-lib1.xpl"/>
  <p:output port="result"/>
  <test:join1 xmlns:test="http://test"/>
  <p:wrap-sequence wrapper="wrapper"/>
</p:declare-step>
  
MorganaXProc passing XML Calabash passing

Schematron validation


    <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
      <s:ns prefix="ex" uri="http://example.com/sample"/>
      <s:pattern>
        <s:rule context="/">
          <s:assert test="wrapper">The pipeline root is not “wrapper”.</s:assert>
        </s:rule>
        <s:rule context="wrapper">
          <s:assert test="one">There’s no “one” element.</s:assert>
          <s:assert test="two">There’s no “two” element.</s:assert>
          <s:assert test="two/preceding-sibling::one">The “two” document precedes the “one” document.</s:assert>
          <s:assert test="count(one)=1">There’s more than one “one”.</s:assert>
          <s:assert test="count(two)=1">There’s more than one “two”.</s:assert>
        </s:rule>
      </s:pattern>
    </s:schema>
  

Revision history

13 Jul 2019, Norman Walsh

Initial publication