Tests that cx:ebnf-convert accepts explicit type not ixml.
Test ebnf-convert-003.xml is expected to pass.
<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions" xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0">
<p:import href="https://xmlcalabash.com/ext/library/ebnf-convert.xpl"/>
<p:output port="result" sequence="true"/>
<cx:ebnf-convert notation="abnf">
<p:with-input port="source">
<p:inline content-type="text/plain">
Thing = letter ":" letters
letter = %x41-5A / %x61-7A ; A-Z / a-z
letters = letter optional
optional = *(letter)
</p:inline>
</p:with-input>
</cx:ebnf-convert>
<p:wrap-sequence wrapper="wrapper"/>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="wrapper">The root is wrong.</s:assert>
<s:assert test="contains(wrapper, '::=')">Grammar is wrong.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Created test.