<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/nw-inline-expand-text-002.xml"
        name="nw-inline-expand-text-002.xml"
        expected="fail"
        code="err:XS0031">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>Test inline-expand-text 002</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2019-01-22</t:date>
            <t:author initials="ab">
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Changed expected error code from XS0084 (no longer in the specs) to XS0031.</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2018-10-24</t:date>
            <t:author initials="ndw">
               <t:name>Norman Walsh</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Initial checkin.</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:err="http://www.w3.org/ns/xproc-error">
      <p>Test that <code>p:inline-expand-text</code> is forbidden outside of <code>p:inline</code>.</p>
   </t:description>
   <t:pipeline xmlns:err="http://www.w3.org/ns/xproc-error">
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:test="http://test" version="3.0">
         <p:output port="result"/>
         <p:declare-step type="test:step">
            <p:output port="result" sequence="true"/>
            <p:input port="source">
               <p:document href="../documents/ab-doc.xml"/>
            </p:input>
            <p:identity/>
         </p:declare-step>
         <test:step p:inline-expand-text="false"/>
      </p:declare-step>
   </t:pipeline>
</t:test>
