viewport-031 (AB)

Test document in p:viewport has proper base-uri.

Test ab-viewport-031.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:viewport match="doc" name="viewport">
            <p:with-input>
               <doc xmlns="" xml:base="http:/dummy-base-uri"/>
            </p:with-input>
            <p:identity>
               <p:with-input><result xmlns="">{base-uri()}</result></p:with-input>
            </p:identity>
         </p:viewport>
      </p:declare-step>
      
   
MorganaXProc passing

Schematron validation


      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <s:pattern>
            <s:rule context="/">
               <s:assert test="result">The root element is not 'result'.</s:assert>
               <s:assert test="result/text()='http:/dummy-base-uri'">The base uri is not correctly set.</s:assert>            
            </s:rule>
         </s:pattern>
      </s:schema>
   

Revision history

20 Apr 2020, Achim Berndzen

New test