Attribute value templates 007 (AB)

Tests AVTs.

Test ab-avt-007.xml is expected to pass.

The pipeline

<p:declare-step xmlns:p="" version="3.0">
   <p:output port="result">
         <doc a="3">text</doc>
   <p:add-attribute match="/*" attribute-name="avt" attribute-value="{doc/text()}:{doc/@a}">
MorganaXProc passing XML Calabash passing

Schematron validation

<s:schema xmlns="" xmlns:s="" queryBinding="xslt2">
      <s:rule context="/">
         <s:assert test="doc">The root element is not 'doc'.</s:assert>
         <s:assert test="doc/@avt='text:3'">AVT is not 'text:3'.</s:assert>

Revision history

10 Jun 2021, Achim Berndzen

Added attribute 'queryBinding' to schematron's schema.

13 Apr 2020, Achim Berndzen

New test