AB p:invisible-xml 011

Tests p:invisible-xml: Error raised for invalid grammar.

Test ab-i-xml-011.xml is expected to fail with error code err:XC0212.

It requires the following features: p:ixml.

The pipeline


<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" 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>
MorganaXProc passing XML Calabash passing

Revision history

14 Sep 2024, Achim Berndzen

Changed step's name to p:invisible-xml

02 Aug 2024, Achim Berndzen

Changed expected error code to new XC0212.

25 Nov 2023, Achim Berndzen

Initial check in.