Fix bug 28369
authorMichael Kay <mike@saxonica.com>
Mon, 30 Mar 2015 08:50:22 +0100
changeset 888 8b46519c1ab1
parent 886 9d7479739035
child 889 04ec5ccfe4c4
Fix bug 28369
tests/expr/higher-order-functions/_higher-order-functions-test-set.xml
tests/expr/higher-order-functions/higher-order-functions-058.xsl
--- a/tests/expr/higher-order-functions/_higher-order-functions-test-set.xml	Sun Mar 29 20:37:24 2015 +0200
+++ b/tests/expr/higher-order-functions/_higher-order-functions-test-set.xml	Mon Mar 30 08:50:22 2015 +0100
@@ -721,26 +721,26 @@
    <test-case name="higher-order-functions-055">
       <description>atomize a function item</description>
       <created by="Michael Kay" on="2012-11-07"/>
-      <dependencies/>
+      <modified by="Michael Kay" on="2015-03-30" change="correct expected error code. Note bug 27610."/>
       <test>
          <stylesheet file="higher-order-functions-055.xsl"/>
          <initial-template name="main"/>
       </test>
       <result>
-         <error code="XPTY0004"/>
+         <error code="FOTY0013"/>
       </result>
    </test-case>
 
    <test-case name="higher-order-functions-056">
       <description>atomize a function item</description>
       <created by="Michael Kay" on="2012-11-07"/>
-      <dependencies/>
+      <modified by="Michael Kay" on="2015-03-30" change="correct expected error code. Note bug 27610."/>
       <test>
          <stylesheet file="higher-order-functions-056.xsl"/>
          <initial-template name="main"/>
       </test>
       <result>
-         <error code="XPTY0004"/>
+         <error code="FOTY0013"/>
       </result>
    </test-case>
 
@@ -760,7 +760,7 @@
    <test-case name="higher-order-functions-058">
       <description>Heterogeneous sequence on rhs of "/"</description>
       <created by="Michael Kay" on="2012-11-07"/>
-      <dependencies/>
+      <modified by="Michael Kay" on="2015-03-30" change="See bug 28369"/>
       <test>
          <stylesheet file="higher-order-functions-058.xsl"/>
          <initial-template name="main"/>
--- a/tests/expr/higher-order-functions/higher-order-functions-058.xsl	Sun Mar 29 20:37:24 2015 +0200
+++ b/tests/expr/higher-order-functions/higher-order-functions-058.xsl	Mon Mar 30 08:50:22 2015 +0100
@@ -8,7 +8,7 @@
     <!-- Heterogeneous sequence on rhs of "/" -->
  
     
-    <xsl:variable name="f"><a b="3"/></xsl:variable>
+    <xsl:variable name="f" as="element(*)"><a b="3"/></xsl:variable>
     
  
     <xsl:template name="main">