p:unescape-markup 006 (AB)

Tests p:unescape-markup

Test ab-unescape-markup-006.xml is expected to pass.

The pipeline


      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
         <p:output port="result"/>
         <p:unescape-markup namespace="http://www.example.org/ns/">
            <p:with-input port="source">
               <p:inline><wrapper xmlns="http://www.test.com/ns/" xmlns="http://www.test.com/ns/"><doc><p>foo</p></doc></wrapper></p:inline>
            </p:with-input>
         </p:unescape-markup>
      </p:declare-step>
   
MorganaXProc passing XML Calabash failing

Schematron validation


      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <s:ns uri="http://www.example.org/ns/" prefix="ex"/>
         <s:ns uri="http://www.test.com/ns/" prefix="wr"/>
         <s:pattern>
             <s:rule context="/">
                <s:assert test="wr:wrapper">Document element is not "wrapper".</s:assert>
                <s:assert test="wr:wrapper/ex:doc">Element 'wrapper' does not have child 'doc'.</s:assert>
                <s:assert test="wr:wrapper/ex:doc/ex:p">Element 'doc' does not have child 'p'.</s:assert>
                <s:assert test="wr:wrapper/ex:doc/ex:p/text()='foo'">Text value of 'p' is not 'foo'.</s:assert>
              </s:rule>
         </s:pattern>
      </s:schema>
   

Revision history

23 Jun 2019, Achim Berndzen

Tests for p:unescape-markup (ported from 1.0 test suite)