Tests that cx:basex runs.
Test basex-001.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/basex.xpl"/>
<p:output port="result" sequence="true"/>
<cx:basex>
<p:with-input>
<p:empty/>
</p:with-input>
<p:with-input port="query">
<p:inline content-type="text/plain">
<doc>{{3 + 4}}</doc>
</p:inline>
</p:with-input>
</cx:basex>
</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:pattern>
<s:rule context="/">
<s:assert test="doc">The root is wrong.</s:assert>
<s:assert test="string(doc) = '7'">The doc is wrong.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Created test.