Tests creating TypeID.
Test unique-id-009.xml is expected to pass.
<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:import href="https://xmlcalabash.com/ext/library/unique-id.xpl"/>
<p:output port="result"/>
<cx:unique-id match="/*/@typeid" flavor="typeid">
<p:with-input>
<doc typeid=""/>
</p:with-input>
</cx:unique-id>
</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 doc.</s:assert>
<s:assert test="doc/@typeid">No “typeid” attribute on doc.</s:assert>
<s:assert test="string-length(doc/@typeid) eq 26">The “typeid” attribute is the wrong length.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Created test.