label-elements 003 (AB)

Testing p:label-elements.

Test ab-label-elements-003.xml is expected to pass.

The pipeline

      <p:declare-step xmlns:p="" version="3.0">
         <p:output port="result"/>
         <p:input port="source">
            <doc xmlns="" xml:base="">
               <chap xml:base="">
         <p:label-elements label="concat("", $p:index)" attribute="xml:base" match="chap"/>
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="base-uri(doc)=''">The base-uri of doc is not ''.</s:assert>
               <s:assert test="doc/@xml:base=''">doc/@xml:base is not ''.</s:assert>

               <s:assert test="doc/chap[1]">Root element does not have a child 'chap'.</s:assert>
               <s:assert test="base-uri(doc/chap[1])=''">The base-uri of chap[1] is not ''.</s:assert>
               <s:assert test="doc/chap[1]/@xml:base=''">The @xml:base of chap[1] is not ''.</s:assert>
               <s:assert test="doc/chap[1]/para/text()='...'">Element 'chap[1]' does not have a para child with '...'.</s:assert>
               <s:assert test="doc/chap[2]">Root element does not have two children 'chap'.</s:assert>
               <s:assert test="base-uri(doc/chap[2])=''">The base-uri of chap[2] is not ''.</s:assert>
               <s:assert test="doc/chap[2]/@xml:base=''">The @xml:base of chap[2] is not ''.</s:assert>
               <s:assert test="doc/chap[2]/para/text()='...'">Element 'chap[2]' does not have a para child with '...'.</s:assert>

Revision history

04 May 2019, Achim Berndzen

Ported test from 1.0 test suite