p:unescape-markup 001 (AB)

Tests p:unescape-markup

Test ab-unescape-markup-001.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>
            <p:with-input port="source">
               <p:inline><wrapper xmlns=""><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:pattern>
             <s:rule context="/">
                <s:assert test="wrapper">Document element is not wrapper.</s:assert>
                <s:assert test="wrapper/doc">Element 'wrapper' should have child 'doc'.</s:assert>
                <s:assert test="wrapper/doc/p">Element 'doc' should have child 'p'.</s:assert>
                <s:assert test="wrapper/doc/p/text()='foo'">Element 'p' should have text child '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)