Document properties 005

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

The pipeline

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

  <p:variable name="a" select="3 + 4"/>

  <p:cast-content-type content-type="application/xml">
    <p:with-input port="source" select="p:document-properties($a)">

MorganaXProc passing XML Calabash failing

Schematron validation

      <s:schema xmlns:s="">
         <s:ns prefix="j" uri=""/>
            <s:rule context="/*">
               <s:assert test="self::j:map">The pipeline root is not 'j:map'.</s:assert>
               <s:assert test="count(/self::j:map/*)=0">Root j:map shouldnt have child elements.</s:assert>

Revision history

23 Nov 2019, Achim Berndzen

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

03 Dec 2018, Achim Berndzen

Changed test, because it not an error anymore, if parameter of p:document-properties-document() is not a document.

24 Sep 2017 17:47, Norman Walsh

Port my test suite; add documentation and schemas