p:os-info-002

Tests p:os-info: Result doc has no base-uri.

Test ab-os-info-002.xml is expected to pass.

It requires the following features: os-info.

The pipeline


<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" 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>
MorganaXProc passing XML Calabash failing

Schematron validation


<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" 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

23 Sep 2022, Achim Berndzen

Added tests for p:os-exec