catalog-002

Make sure that the catalog configuration is available to parsers, etc.

Test catalog-002.xml is expected to pass.

The pipeline

<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions" xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0">
   <p:output port="result" sequence="true"/>
   <p:xslt>
      <p:with-input port="source" href="../documents/catalog-sample.xml"/>
      <p:with-input port="stylesheet" href="../documents/identity.xsl"/>
   </p:xslt>
</p:declare-step>

Schematron validation

<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <s:pattern>
      <s:rule context="/">
         <s:assert test="sample">The root is wrong.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

10 May 2026, Norm Tovey-Walsh

Fixed markup error (moved catalog element).

17 May 2025, Norm Tovey-Walsh

Created test.