Contenttypes 029

Tests TVT with HTML media type copies nodes.

Test ab-contenttypes-029.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="application/xhtml+xml">
                  <html xmlns="">{$doc/doc/a}</html>
MorganaXProc passing

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