basex-href-001
Tests that a BaseX URI can be resolved by the document resolver.
Test is expected to pass.
The pipeline
<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions"
xmlns:p="http://www.w3.org/ns/xproc"
xmlns:t="http://xproc.org/ns/testsuite/3.0" name="main" version="3.0">
<p:output port="result" sequence="true"/>
<p:identity>
<p:with-input href="basex://XProcUnitTestDB/testfolder/file.xml"/>
</p:identity>
</p:declare-step>
Result
<doc xmlns:t="http://xproc.org/ns/testsuite/3.0">It worked.</doc>
Filesystem environment
| Directory | Perm | Filename | Last-modified | Size | Encoding | Contents (abbreviated) |
|---|
| | .rwx | file.xml | | 21 | | <doc>It worked.</doc> |
Schematron checks
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron"
xmlns:t="http://xproc.org/ns/testsuite/3.0" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="doc = 'It worked.'">The result is wrong.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Revision history
- 29 Oct 2025, Norm Tovey-Walsh
- Created test.