Document properties 002

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

The pipeline

<p:declare-step xmlns:c="" xmlns:p="" 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:cast-content-type content-type="application/xml">
      <p:with-input port="source" select="p:document-properties(.)"/>
MorganaXProc passing XML Calabash passing

Schematron validation

<s:schema xmlns:s="" queryBinding="xslt2">
   <s:ns prefix="j" uri=""/>
      <s:rule context="/">
         <s:assert test="j:map">The pipeline root is not “map”.</s:assert>
         <s:assert test="j:map/j:number[@key='a']">Element does not has an attribute 'key' with value 'a'.</s:assert>
         <s:assert test="j:map/j:number/text() = '1'">The property value is not 1</s:assert>

Revision history

19 Nov 2019, Achim Berndzen

Changed test from p:document-properties-document() to p:document-properties()

24 Sep 2017 17:47, Norman Walsh

Port my test suite; add documentation and schemas