issue-809-001

Tests that a static xs:anyURI can be constructed from a string.

Test is expected to pass.

The pipeline

<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions"
                xmlns:ex="https://xmlcalabash.com/ns/examples" xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0"
                xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-inline-prefixes="ex xs cx"
                name="main" version="3.0">
   <p:import href="../pipelines/issue-809-library.xpl"/>
   <p:output port="result"/>
   <p:identity>
      <p:with-input>
         <doc>{$tmp}</doc>
      </p:with-input>
   </p:identity>
</p:declare-step>

Result

<doc xmlns:t="http://xproc.org/ns/testsuite/3.0">file:///C:/Temp/</doc>

Schematron checks

<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron"
          xmlns:t="http://xproc.org/ns/testsuite/3.0" queryBinding="xslt2">
   <s:pattern>
      <s:rule context="/">
         <s:assert test="doc">The document root is not correct.</s:assert>
      </s:rule>
   </s:pattern>
   <s:pattern>
      <s:rule context="/doc">
         <s:assert test=". = 'file:///C:/Temp/'">The content is incorrect.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

31 Aug 2026, Norm Tovey-Walsh
Created test.