Contenttypes 028

Tests TVT with HTML media type copies nodes.

Test ab-contenttypes-028.xml is expected to pass.

The pipeline

      <p:declare-step xmlns:p="" version="3.0">
         <p:output port="result"/>
         <p:variable name="doc" select=".">
            <doc xmlns="">
               <p:inline content-type="text/html">
                  <html xmlns="">{$doc/doc/a}</html>
MorganaXProc passing XML Calabash failing

Schematron validation

      <s:schema xmlns:s="">
            <s:rule context="/">
               <s:assert test="/html">Root element is not 'html'.</s:assert>
               <s:assert test="/html/a">Root element does an element 'a'.</s:assert>
               <s:assert test="/html/a/text()='text'">Element 'a' does not have a text child with 'text'.</s:assert>

Revision history

26 Apr 2019, Achim Berndzen

Additional tests for content-types with shortcuts