p:os-info-002
Tests p:os-info: Result doc has no base-uri.
Test is expected to pass.
The pipeline
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
<p:output port="result"/>
<p:os-info/>
<p:identity>
<p:with-input>
<result>{p:document-property(., 'base-uri')}</result>
</p:with-input>
</p:identity>
</p:declare-step>
Result
<result xmlns:t="http://xproc.org/ns/testsuite/3.0"/>
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="result">The document root is not 'c:result'.</s:assert>
<s:assert test="string-length(result/text()) = 0">The base-uri is not empty.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Revision history
- 27 Apr 2025, Norm Tovey-Walsh
- Fixed a cut-and-paste error in the test description.
- 23 Sep 2022, Achim Berndzen
- Added tests for p:os-info