label-elements 009 (AB)

Testing p:label-elements.

Test ab-label-elements-009.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="">
               <element xmlns:bar="" bar:baz="baz"/>
         <p:label-elements match="element" attribute="bar:foo"/>
MorganaXProc passing XML Calabash passing

Schematron validation

      <s:schema xmlns:s="">
            <s:rule context="/">
               <s:assert test="doc/element/@*:foo='_1'">Child 'element' of 'doc' does not have @*:foo with '_1'.</s:assert>
               <s:assert test="namespace-uri(doc/element/@*:foo)=''">Namespace URI of @foo is not ''.</s:assert>
               <s:assert test="doc/element/@*:baz='baz'">Child 'element' of 'doc' does not have @baz with 'baz'.</s:assert>
               <s:assert test="namespace-uri(doc/element/@*:baz)=''">Namespace URI of @baz is not ''.</s:assert>

Revision history

04 May 2019, Achim Berndzen

Ported test from 1.0 test suite:

Tests attribute-namespace and attribute-prefix. If you attempt to duplicate a prefix, make sure the namespace bindings don't get mangled!