<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/ab-xslt-009.xml"
        name="ab-xslt-009.xml"
        expected="fail"
        code="err:XC0095"
        features="xslt-2">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>AB-xslt-009</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2019-08-04</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Initial commit</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>Tests XC0095 is raised for dynamic stylesheet errors (2.0)</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" version="3.0">
         <p:output port="result"/>
         <p:xslt version="2.0">
            <p:with-input port="source">
               <doc a="c"/>
            </p:with-input>
            <p:with-input port="stylesheet">
               <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
                  <xsl:template match="/">
                     <test-failed>
                        <xsl:value-of select="16 * /doc/@a"/>
                     </test-failed>
                  </xsl:template>
               </xsl:stylesheet>
            </p:with-input>
         </p:xslt>
      </p:declare-step>
   </t:pipeline>
</t:test>
