<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xmlns:err="http://www.w3.org/ns/xproc-error"
        expected="fail" code="err:XD0052">
   <t:info>
      <t:title>XD0052-001 (NW)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2026-04-20</t:date>
            <t:author>
               <t:name>Norm Tovey-Walsh</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Test for err:XD0052 (attribute not allowed).</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml">
      <p>Tests that err:XD0052 is raised for attributes that appear in a TVT
      in forbidden places.</p>
   </t:description>
   
   <t:pipeline>
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
        <p:input port="source">
          <p:inline><doc status="draft"/></p:inline>
        </p:input>
        <p:output port="result" />

        <p:identity>
          <p:with-input>
            <p:inline><result>preceding text {doc/@status}</result></p:inline>
          </p:with-input>
        </p:identity>
      </p:declare-step>
   </t:pipeline>
</t:test>
