Input 019

Tests p:input with p:inline as child.

Test is expected to pass.

The pipeline

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
   <p:input port="source">
      <p:inline>
         <doc/>
      </p:inline>
   </p:input>
   <p:output port="result"/>
   <p:identity/>
</p:declare-step>

Result

<doc xmlns:t="http://xproc.org/ns/testsuite/3.0"/>

Schematron checks

<s:schema xmlns:p="http://www.w3.org/ns/xproc"
          xmlns:rng="http://relaxng.org/ns/structure/1.0"
          xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns:t="http://xproc.org/ns/testsuite/3.0"
          queryBinding="xslt2">
   <s:ns prefix="p" uri="http://www.w3.org/ns/xproc"/>
   <s:pattern>
      <s:rule context="/*">
         <s:assert test="self::doc">The pipeline root is not doc.</s:assert>
         <s:assert test="count(self::doc//*) = 0">No children of doc expected.</s:assert>
         <s:assert test="count(self::doc//@*) = 0">No attributes of doc expected.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

18 Mar 2018, Achim Berndzen
New tests. Some tests changed to new order in p:pipe