p:os-info-003

Tests p:os-info: Tests required attributes are present.

Test ab-os-info-003.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:declare-step>
MorganaXProc passing XML Calabash passing

Schematron validation


<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <s:ns prefix="c" uri="http://www.w3.org/ns/xproc-step"/>
   <s:pattern>
      <s:rule context="/">
         <s:assert test="c:result">The document root is not 'c:result'.</s:assert>
         <s:assert test="c:result/@file-separator">There is no attribute 'file-separator'.</s:assert>
         <s:assert test="c:result/@path-separator">There is no attribute 'path-separator'.</s:assert>
         <s:assert test="c:result/@os-architecture">There is no attribute 'os-architecture'.</s:assert>
         <s:assert test="c:result/@os-name">There is no attribute 'os-name'.</s:assert>
         <s:assert test="c:result/@os-version">There is no attribute 'os-version'.</s:assert>
         <s:assert test="c:result/@cwd">There is no attribute 'cwd'.</s:assert>
         <s:assert test="c:result/@user-name">There is no attribute 'user-name'.</s:assert>
         <s:assert test="c:result/@user-home">There is no attribute 'user-home'.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

23 Sep 2022, Achim Berndzen

Added tests for p:os-exec