<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xmlns:err="http://www.w3.org/ns/xproc-error"
        expected="fail" code="err:XD0030 err:XC0098">
   <t:info>
      <t:title>p:text-sort-017 (AB)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2019-09-01</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Some tests for p:text-sort</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml">
      <p>Tests p:text-sort: XC0098 must be raised, if @sort-key has a dynamic error.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:output port="result"/>        
      
         <p:text-sort sort-key="error()">
            <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>
   </t:pipeline>
</t:test>
