Correct the expected error code
authorMichael Kay <mike@saxonica.com>
Wed, 27 Jun 2018 13:13:20 +0100
changeset 1864 674a838e058d
parent 1863 c9ae740a896e
child 1865 4b18c485f28b
Correct the expected error code
tests/strm/si-LRE/_si-lre-test-set.xml
tests/strm/si-LRE/si-lre-C.xsl
tests/strm/si-element/_si-element-test-set.xml
tests/strm/si-element/si-element-C.xsl
--- a/tests/strm/si-LRE/_si-lre-test-set.xml	Wed Jun 27 13:12:37 2018 +0100
+++ b/tests/strm/si-LRE/_si-lre-test-set.xml	Wed Jun 27 13:13:20 2018 +0100
@@ -1091,6 +1091,7 @@
    <test-case name="si-lre-258">
       <description>literal result element; content cannot include function items; error - caught</description>
       <created by="Michael Kay" on="2014-01-06"/>
+      <modified by="Michael Kay" on="2018-06-26" change="Added XTDE0450 which is the correct error code, but left FOTY0013 for old times sake"/>
       <environment ref="si-lre-C"/>
       <test>
          <initial-template name="s-058"/>
--- a/tests/strm/si-LRE/si-lre-C.xsl	Wed Jun 27 13:12:37 2018 +0100
+++ b/tests/strm/si-LRE/si-lre-C.xsl	Wed Jun 27 13:13:20 2018 +0100
@@ -403,6 +403,8 @@
     </xsl:template>
     
     <!-- xsl:element content cannot contain a function item - error - recovered -->
+    <!-- modified by="Michael Kay" on="2018-06-26" change="Added XTDE0450 which is the correct error code, but left FOTY0013 for old times sake" -->
+      
     
     <xsl:template name="s-058" use-when="$RUN">
       <xsl:param name="s" select="false#0"/>
@@ -410,7 +412,7 @@
         <out>
           <xsl:try>
             <a><xsl:sequence select="1, 2, head(//text()), $s"/></a>
-            <xsl:catch errors="*:FOTY0013">caught</xsl:catch>
+            <xsl:catch errors="*:FOTY0013 *:XTDE0450">caught</xsl:catch>
           </xsl:try>
         </out>
       </xsl:source-document>
--- a/tests/strm/si-element/_si-element-test-set.xml	Wed Jun 27 13:12:37 2018 +0100
+++ b/tests/strm/si-element/_si-element-test-set.xml	Wed Jun 27 13:13:20 2018 +0100
@@ -1100,6 +1100,7 @@
    <test-case name="si-element-258">
       <description>xsl:element; content cannot include function items; error - caught</description>
       <created by="Michael Kay" on="2014-01-06"/>
+      <modified by="Michael Kay" on="2018-06-26" change="Added XTDE0450 which is the correct error code, but left FOTY0013 for old times sake"/>
       <environment ref="si-element-C"/>
       <test>
          <initial-template name="s-058"/>
--- a/tests/strm/si-element/si-element-C.xsl	Wed Jun 27 13:12:37 2018 +0100
+++ b/tests/strm/si-element/si-element-C.xsl	Wed Jun 27 13:13:20 2018 +0100
@@ -462,6 +462,7 @@
   </xsl:template>
 
   <!-- xsl:element content cannot contain a function item - error - recovered -->
+  <!-- MHK 2018-06-26: added XTDE0450 which is the correct error code, but left FOTY0013 for old times sake -->
 
   <xsl:template name="s-058" use-when="$RUN">
     <xsl:param name="s" select="false#0"/>
@@ -471,7 +472,7 @@
           <xsl:element name="a">
             <xsl:sequence select="1, 2, head(//text()), $s"/>
           </xsl:element>
-          <xsl:catch errors="*:FOTY0013">caught</xsl:catch>
+          <xsl:catch errors="*:FOTY0013 *:XTDE0450">caught</xsl:catch>
         </xsl:try>
       </out>
     </xsl:source-document>