p:document 002

Tests p:document with a relative uri in @href: Base uri of p:document to be used.

Test ab-p-document002.xml is expected to pass.

The pipeline


      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
            <p:output port="result"/>        

            <p:identity>
                <p:with-input>
                    <p:document href="langspec.xml" xml:base="https://www.w3.org/TR/2010/REC-xproc-20100511/"/>
                </p:with-input>
            </p:identity>
        </p:declare-step>
   
MorganaXProc passing XML Calabash passing

Schematron validation


      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <s:ns uri="http://docbook.org/ns/docbook" prefix="db"/>
         <s:pattern>
            <s:rule context="/">
               <s:assert test="db:specification">The document root is not specification.</s:assert>
            </s:rule>
         </s:pattern>
      </s:schema>
   

Revision history

03 Apr 2018 16:57, Achim Berndzen

Some new tests.