Add-attribute-019 (AB)

Tests that adding attribute "xml:base".

Test ab-add-attribute-019.xml is expected to pass.

The pipeline

      <p:declare-step xmlns:p="" version="3.0">
         <p:output port="result"/>
               <doc xmlns=""/>
         <p:add-attribute attribute-value="http://base-uri" attribute-name="xml:base"/>
MorganaXProc passing XML Calabash passing

Schematron validation

      <s:schema xmlns:s="">
            <s:rule context="/">
               <s:assert test="doc">The document root is not 'doc'.</s:assert>
               <s:assert test="doc/@xml:base='http://base-uri'">@xml-base of element 'doc' is not 'http://base-uri'.</s:assert>

Revision history

16 Feb 2019, Achim Berndzen

Added new tests for p:add-attribute.