<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0" 
        xmlns:err="http://www.w3.org/ns/xproc-error" 
        code="err:XC0056" expected="fail" features="xslt-2">
   <t:info>
      <t:title>AB-xslt-058</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2019-10-04</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Added tests for p:xslt with version="2.0".</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml">
      <p>Tests an undefined teamplate name raises an error.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:output port="result"/>
         <p:xslt version="2.0" template-name="i-am-not-defined">
            <p:with-input><doc/></p:with-input>
            <p:with-input port="stylesheet">       
               <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
                  <xsl:template match="/">
                     <error />
                  </xsl:template>
               </xsl:stylesheet>
            </p:with-input>
         </p:xslt>
      </p:declare-step>
   </t:pipeline>
</t:test>