<?xml version="1.0" encoding="UTF-8"?>
<t:test xmlns:err="http://www.w3.org/ns/xproc-error"
        expected="fail" code="err:XS0107"
        xmlns:t="http://xproc.org/ns/testsuite/3.0">
  <t:info>
    <t:title>pipelineception-011</t:title>
    <t:revision-history>
      <t:revision>
        <t:date>2025-09-20</t:date>
        <t:author>
          <t:name>Norm Tovey-Walsh</t:name>
        </t:author>
        <t:description xmlns="http://www.w3.org/1999/xhtml">
          <p>Created test.</p>
        </t:description>
      </t:revision>
    </t:revision-history>
  </t:info>
  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Test that a step that’s private to a library is not exposed
    as a function.</p>
  </t:description>
  <t:pipeline>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:xs="http://www.w3.org/2001/XMLSchema" 
                xmlns:ex="http://example.com/ns"
                xmlns:map="http://www.w3.org/2005/xpath-functions/map"
                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>
  </t:pipeline>
</t:test>
