pipelineception-011

Test that a step that’s private to a library is not exposed as a function.

Test pipelineception-011.xml is expected to fail with error code err:XS0107.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:ex="http://example.com/ns" xmlns:map="http://www.w3.org/2005/xpath-functions/map" xmlns:p="http://www.w3.org/ns/xproc" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-inline-prefixes="#all" name="main" version="3.0">
   <p:import href="../documents/library.xpl"/>
   <p:output port="result" sequence="true"/>
   <p:identity>
      <p:with-input>
         <hash>{ex:private-hash(map{'text': 'Hello, world.'})?result}</hash>
      </p:with-input>
   </p:identity>
</p:declare-step>

Revision history

20 Sep 2025, Norm Tovey-Walsh

Created test.