p:unescape-markup 010 (AB)

Tests p:unescape-markup: No top-level element means no change.

Test ab-unescape-markup-010.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:wrap-sequence wrapper="wrapper"/>
MorganaXProc passing XML Calabash failing

Schematron validation

      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
            <s:rule context="/">
               <s:assert test="wrapper">Root element is not 'wrapper'.</s:assert>
               <s:assert test="count(wrapper/node())=1">Root element should have just one child.</s:assert>
               <s:assert test="wrapper/comment()=' comment '">Comment is not ' comment '.</s:assert>

Revision history

30 Jun 2019, Achim Berndzen

Fixed test by removing whitespace around comment.

23 Jun 2019, Achim Berndzen

Tests for p:unescape-markup