p:text-sort-018 (AB)

Tests p:text-sort: XC0099 must be raised, if @sort-key produced a sequence with more than one element.

Test is expected to fail with with one of these error codes: err:XD0030, err:XC0099.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
                xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
   <p:output port="result"/>
   <p:text-sort sort-key="(1, 2)">
      <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>

Revision history

01 Sep 2019, Achim Berndzen
Some tests for p:text-sort