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=".">
         <p:inline content-type="text/html">
MorganaXProc passing XML Calabash passing

Schematron validation

<s:schema xmlns="" xmlns:s="" queryBinding="xslt2">
      <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

10 Jun 2021, Achim Berndzen

Added attribute 'queryBinding' to schematron's schema.

26 Apr 2019, Achim Berndzen

Additional tests for content-types with shortcuts