Multipart RNC to RNG
Test trang-015.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/trang.xpl"/>
<p:output port="result" sequence="true"/>
<cx:trang output-base-uri="http://example.com/schemas/" result-format="rng">
<p:with-input>
<p:document href="../documents/rnc/schema.rnc"/>
<p:document href="../documents/rnc/core.rnc"/>
<p:document href="../documents/rnc/sub/b.rnc"/>
</p:with-input>
</cx:trang>
<p:wrap-sequence wrapper="wrapper"/>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns prefix="rng" uri="http://relaxng.org/ns/structure/1.0"/>
<s:pattern>
<s:rule context="/">
<s:assert test="wrapper">The root is wrong.</s:assert>
<s:assert test="count(wrapper/rng:grammar) = 3">Wrong number of schemas.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Created test.