<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="ab-i-xml-011.xml"
        name="ab-i-xml-011.xml"
        expected="fail"
        features="p:ixml"
        code="err:XC0212">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>AB p:invisible-xml 011</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2024-09-14</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Changed step's name to p:invisible-xml</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2024-08-02</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Changed expected error code to new XC0212.</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2023-11-25</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"
                  xmlns:err="http://www.w3.org/ns/xproc-error">
      <p>Tests p:invisible-xml: Error raised for invalid grammar.</p>
   </t:description>
   <t:pipeline xmlns:err="http://www.w3.org/ns/xproc-error">
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:output port="result"/>
         <p:invisible-xml fail-on-error="true">
            <p:with-input port="grammar">
               <p:inline content-type="text/plain">
                  date: s?, day, s, month, (s, year)? .
                  -s: -" "+ .
                  day: digit, digit? .
                  -XdigitX: "0"; "1"; "2"; "3"; "4"; "5"; "6"; "7"; "8"; "9".
                  month: "January"; "February"; "March"; "April";
                  "May"; "June"; "July"; "August";
                  "September"; "October"; "November"; "December".
                  year: (digit, digit)?, digit, digit .
               </p:inline>
            </p:with-input>
            <p:with-input port="source">
               <p:inline content-type="text/plain">a123</p:inline>
            </p:with-input>
         </p:invisible-xml>
      </p:declare-step>
   </t:pipeline>
</t:test>
