Document properties 002

Test doc-prop-002.xml is expected to pass.

The pipeline

<p:declare-step xmlns:p="" xmlns:c="" name="main" version="3.0">
  <p:output port="result"/>

  <p:identity name="id">
    <p:with-input port="source">
      <p:document href="../tests/doc-prop-002.xml" document-properties="map { 'a': 1 }"/>

    <p:with-input port="source" select="p:document-properties-document(.)/c:document-properties/a"/>

MorganaXProc passing XML Calabash passing

Schematron validation

<s:schema xmlns:s="">
   <s:ns prefix="c" uri=""/>

     <s:rule context="/*">
       <s:assert test="self::a">The pipeline root is not “a”.</s:assert>
       <s:assert test="string(.) = '1'">The property value is not 1</s:assert>

Revision history

24 Sep 2017 17:47, Norman Walsh

Port my test suite; add documentation and schemas