<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0" xmlns:err="http://www.w3.org/ns/xproc-error" expected="fail" code="err:XD0059">
   <t:info>
      <t:title>p:document 025</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2019-11-23</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Changed test from p:document-properties-document() to p:document-properties().</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2018-08-29T15:54:35+02:00</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Now I have all tests where p:document needs a content-type according to the new specs</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2018-06-02T17:53:51-05:00</t:date>
            <t:author>
               <t:name>Norman Walsh</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Fix namespace declarations</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2018-04-25T18:11:02+02:00</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>More tests.</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml">
      <p>Tests p:document with a JSON-document: Error XD0059 expected because 'duplicates' has illegal value.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
            <p:output port="result"/>        

            <p:identity>
                <p:with-input select="p:document-properties(.)">
                    <p:document href="../documents/JSon-doc1.json" content-type="application/json" parameters="map{'duplicates': 'illegal'}"/>
                </p:with-input>
            </p:identity>

        </p:declare-step>
   </t:pipeline>
</t:test>
