trang-011

An XSD input is an error

Test is expected to fail with error code cxerr:XC0026.

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"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" 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>
         <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
                    elementFormDefault="qualified">
            <xs:element name="doc">
               <xs:complexType>
                  <xs:sequence>
                     <xs:element maxOccurs="unbounded"
                                 ref="p"/>
                  </xs:sequence>
               </xs:complexType>
            </xs:element>
            <xs:element name="p" type="xs:string"/>
         </xs:schema>
      </p:with-input>
   </cx:trang>
</p:declare-step>

Revision history

23 Mar 2025, Norm Tovey-Walsh
Created test.