Changed error code (spec change)
authorMichael Kay <mike@saxonica.com>
Thu, 13 Aug 2015 22:37:08 +0100
changeset 1040 45899ebba0f0
parent 1039 04f2e59a9906
child 1041 96cb3048ae26
Changed error code (spec change)
tests/fn/unparsed-text-lines/_unparsed-text-lines-test-set.xml
tests/fn/unparsed-text-lines/unparsed-text-lines-004.xsl
--- a/tests/fn/unparsed-text-lines/_unparsed-text-lines-test-set.xml	Thu Aug 13 22:36:06 2015 +0100
+++ b/tests/fn/unparsed-text-lines/_unparsed-text-lines-test-set.xml	Thu Aug 13 22:37:08 2015 +0100
@@ -46,6 +46,7 @@
    <test-case name="unparsed-text-lines-004">
       <description>Test of unparsed-text-lines function recovering from error (NUL character in file)</description>
       <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Michael Kay" on="2015-08-13" change="error code has changed"/>
       <test>
          <stylesheet file="unparsed-text-lines-004.xsl"/>
          <initial-template name="main"/>
--- a/tests/fn/unparsed-text-lines/unparsed-text-lines-004.xsl	Thu Aug 13 22:36:06 2015 +0100
+++ b/tests/fn/unparsed-text-lines/unparsed-text-lines-004.xsl	Thu Aug 13 22:37:08 2015 +0100
@@ -1,7 +1,7 @@
 <?xml version="1.0"?> 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
   
-<!-- Test unparsed-text-lines() function (XSLT 2.1) -->
+<!-- Test unparsed-text-lines() function (XPath 3.0) -->
 <!-- Read file containing invalid character, recover from the error -->
    <?spec xslt#unparsed-text-lines?>
 
@@ -11,7 +11,7 @@
         <xsl:for-each select="unparsed-text-lines('quadruped-contains-NUL.txt', 'iso-8859-1')">
           <line><xsl:value-of select="."/></line>
         </xsl:for-each>
-        <xsl:catch errors="*:XTDE1190">
+        <xsl:catch errors="*:FOUT1190">
           <error>Invalid text file</error>
         </xsl:catch>
     </xsl:try>