p:escape-markup 001

Tests p:escape-markup

Test ab-escape-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:escape-markup>
            <p:with-input>
               <body-wrapper xmlns=""><doc><p>foo&bar;</p></doc></body-wrapper>
            </p:with-input>
         </p:escape-markup>
         
      </p:declare-step>
   
MorganaXProc passing XML Calabash passing

Schematron validation


      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <s:pattern>
             <s:rule context="/">
                <s:assert test="body-wrapper">Document element should be 'body-wrapper'.</s:assert>
                <s:assert test="body-wrapper/text()='<doc><p>foo&amp;bar;</p></doc>'">Text child is not '<doc><p>foo&amp;bar;</p></doc>'.</s:assert>
              </s:rule>
         </s:pattern>
      </s:schema>
   

Revision history

23 Jun 2019, Achim Berndzen

Tests for p:escape-markup