ab-directory-list-062

Tests p:directory-list attempting to read an unreadable sub-directory.

Test ab-directory-list-062.xml is expected to pass.

It requires the following features: p:directory-list.

The pipeline

<p:declare-step xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
   <p:output port="result"/>
   <p:directory-list path="../testfolder" max-depth="unbounded" ignore-unreadable-directories="true"/>
</p:declare-step>

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:directory">Document element is not c:directory</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

04 Dec 2026, Achim Berndzen

Initial commit.