trang-004

Tests DTD to DTD

Test trang-004.xml is expected to fail with error code cxerr:XC0036.

The pipeline

<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions" xmlns:cxerr="http://xmlcalabash.com/ns/error" xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0">
   <p:import href="https://xmlcalabash.com/ext/library/trang.xpl"/>
   <p:output port="result" sequence="true"/>
   <cx:trang output-base-uri="http://example.com/schemas/" result-format="dtd">
      <p:with-input>
         <p:inline content-type="application/xml-dtd">
&lt;!ELEMENT doc (p+)&gt;
&lt;!ELEMENT p (#PCDATA)*&gt;
      </p:inline>
      </p:with-input>
   </cx:trang>
</p:declare-step>

Revision history

23 Mar 2025, Norm Tovey-Walsh

Created test.