<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/ab-input-017.xml"
        name="ab-input-017.xml"
        expected="pass">
   <t:info>
      <t:title>Input 017</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2018-03-18T07:41:36+01:00</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>New tests. Some tests changed to new order in p:pipe</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml">
      <p>Tests p:input with @href.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:input port="source" href="../documents/ab-doc.xml"/>
         <p:output port="result"/>
         <p:identity/>
      </p:declare-step>
   </t:pipeline>
   <t:schematron>
      <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"
                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>
   </t:schematron>
   <t:result name="ab-input-017.xml">
      <doc/>
   </t:result>
</t:test>
