Parameters 002

Test parameters-002.xml is expected to pass.

The pipeline

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

    <p:with-option name="parameters" select="map { 'p': count(//p) }">

MorganaXProc failing XML Calabash passing

Schematron validation

      <s:schema xmlns:s="">
         <s:ns prefix="p" uri=""/>
         <s:ns prefix="c" uri=""/>
            <s:rule context="/*">
               <s:assert test="self::c:param-set">The pipeline root is not c:param-set.</s:assert>
            <s:rule context="c:param-set">
               <s:assert test="empty(*[not(self::c:param)])">
            The c:param-set element contains illegal children.</s:assert>
            <s:rule context="c:param-set">
               <s:assert test="count(c:param) = 1">
            The c:param-set element has the wrong number of c:params.</s:assert>
            <s:rule context="c:param">
               <s:assert test="(@name = 'p' and @value = '3')">
            The c:param is incorrect.</s:assert>

Revision history

24 Sep 2017 17:47, Norman Walsh

Port my test suite; add documentation and schemas