viewport-038 (AB)

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

Test ab-viewport-038.xml is expected to pass.

The pipeline

      <p:declare-step xmlns:p="" version="3.0">
         <p:output port="result"/>
         <p:input port="source">
            <p:inline document-properties="map{'base-uri' : 'http:/dummy-base-uri'}">
               <doc xmlns=""/>
         <p:viewport match="/" name="viewport">
               <p:with-input><result xmlns="">{base-uri(.)}</result></p:with-input>
MorganaXProc passing XML Calabash failing

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