Tests p:text-sort: XD0036 must be raised if @lang isn't called with an allowed value.
Test ab-text-sort-021.xml is expected to fail with error code err:XD0036
.
<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:output port="result"/>
<p:text-sort lang="longerThan8">
<p:with-input>
<p:inline content-type="text/plain">A
B
V
D
X</p:inline>
</p:with-input>
</p:text-sort>
<p:wrap-sequence wrapper="wrapper"/>
</p:declare-step>
Some tests for p:text-sort