Document properties 005

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

The pipeline

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="http://www.w3.org/ns/xproc-step" name="main" version="3.0">
  <p:output port="result"/>

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

  <p:identity>
    <p:with-input port="source" select="p:document-properties-document($a)">
      <p:empty/>
    </p:with-input>
  </p:identity>

</p:declare-step>
MorganaXProc passing XML Calabash passing

Schematron validation


      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <s:ns prefix="c" uri="http://www.w3.org/ns/xproc-step"/>
         <s:pattern>
            <s:rule context="/*">
               <s:assert test="self::c:document-properties">The pipeline root is not c:document-properties.</s:assert>
               <s:assert test="count(/self::c:document-properties/*)=0">Root c:document-properties shouldnt have child elements.</s:assert>
            </s:rule>
         </s:pattern>
      </s:schema>
   

Revision history

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