Tests that cx:railroad produces HTML.
Test rr-006.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/railroad.xpl"/>
<p:output port="result" sequence="true" pipe="html"/>
<cx:railroad inline-literals="false">
<p:with-input>
<p:inline content-type="text/plain">
S ::= A B
A ::= "a"
B ::= B1 | B2
B1 ::= B2
B2 ::= "b"
</p:inline>
</p:with-input>
</cx:railroad>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns prefix="svg" uri="http://www.w3.org/2000/svg"/>
<s:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
<s:pattern>
<s:rule context="/">
<s:assert test="h:html">HTML not returned.</s:assert>
<s:assert test="//svg:svg">No SVG returned.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Created test.