<?xml version="1.0" encoding="UTF-8"?>
<t:test  expected="fail" code="err:XC0210"
        features="p-validate-with-dtd" 
        xmlns:err="http://www.w3.org/ns/xproc-error"
        xmlns:t="http://xproc.org/ns/testsuite/3.0">
   <t:info>
      <t:title>ab-validate-with-dtd-009</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2024-08-15</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Initial check in.</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml">
      <p>Test DTD validation: Error needs to be raised for invalid document.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step name="pipeline"
                      version="3.0"
                      xmlns:p="http://www.w3.org/ns/xproc">
         <p:output port="result"/>
         <p:validate-with-dtd serialization="map{'doctype-system' : '../documents/address.dtd'}">
            <p:with-input>
               <p:inline>
                  <address >
                     <first-name>Douglas</first-name>
                     <last>Adams</last>
                     <phone>42</phone>
                  </address>
               </p:inline>
            </p:with-input>
         </p:validate-with-dtd>
      </p:declare-step>
   </t:pipeline>
</t:test>