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 xmlns="">
               <a>text</a>
            </doc>
         </p:variable>
         
         <p:identity>
            <p:with-input>
               <p:inline content-type="text/html">
                  <html xmlns="">{$doc/doc/a}</html>
               </p:inline>
            </p:with-input>
         </p:identity>
      </p:declare-step>
   
MorganaXProc passing

Schematron validation


      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <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

26 Apr 2019, Achim Berndzen

Additional tests for content-types with shortcuts