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="http://www.w3.org/ns/xproc" version="3.0">
   <p:output port="result"/>
   <p:variable name="doc" select=".">
      <doc>
         <a>text</a>
      </doc>
   </p:variable>
   <p:identity>
      <p:with-input>
         <p:inline content-type="text/html">
            <html>{$doc/doc/a}</html>
         </p:inline>
      </p:with-input>
   </p:identity>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Schematron validation


<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <s:pattern>
      <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>
      </s:rule>
   </s:pattern>
</s:schema>

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