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="" version="3.0">
         <p:output port="result"/>
         <p:viewport match="doc" name="viewport">
               <doc xmlns="" xml:base="http:/dummy-base-uri"/>
               <p:with-input><result xmlns="">{base-uri()}</result></p:with-input>
MorganaXProc passing XML Calabash passing

Schematron validation

      <s:schema xmlns:s="">
            <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>            

Revision history

20 Apr 2020, Achim Berndzen

New test