XD0052-001 (NW)

Tests that err:XD0052 is raised for attributes that appear in a TVT in forbidden places.

Test nw-XD0052-001.xml is expected to fail with error code err:XD0052.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" 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>

Revision history

20 Apr 2026, Norm Tovey-Walsh

Test for err:XD0052 (attribute not allowed).