Tests that a static xs:anyURI can be constructed from a string.
Test issue-809-002.xml is expected to pass.
<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:xs="http://www.w3.org/2001/XMLSchema" exclude-inline-prefixes="ex xs cx" name="main" version="3.0">
<p:output port="result"/>
<p:input port="source">
<p:inline content-type="application/xml">
<xsltTransformation name="Named Template" template="named-template"/>
</p:inline>
</p:input>
<p:variable name="template-name" as="xs:QName?" select="xsltTransformation/@template"/>
<p:identity>
<p:with-input>
<doc>{$template-name}</doc>
</p:with-input>
</p:identity>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" 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=". = 'named-template'">The content is incorrect.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Created test.