Bug 28423 implemented test error-3175, plus some minor typos in stylesheets that raised the wrong error
authorabraaksm
Tue, 07 Apr 2015 08:41:26 +0200
changeset 928 8fe1cd834631
parent 927 8a0748001536
child 929 73bc2d0f3dbb
Bug 28423 implemented test error-3175, plus some minor typos in stylesheets that raised the wrong error
tests/misc/error/_error-test-set.xml
tests/misc/error/error-3175a.xsl
tests/misc/error/error-3255a.xsl
tests/misc/error/error-3265a.xsl
--- a/tests/misc/error/_error-test-set.xml	Tue Apr 07 07:33:26 2015 +0200
+++ b/tests/misc/error/_error-test-set.xml	Tue Apr 07 08:41:26 2015 +0200
@@ -9816,8 +9816,10 @@
                instruction is evaluated when use of xsl:evaluate is disabled.
             </description>
       <created by="Michael Kay" on="2014-08-25"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
+      <modified by="Abel Braaksma" on="2015-04-07" change="Bug 28423, test needed to be implemented, added dependency on dynamic-evaluation"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+         <feature value="dynamic_evaluation" satisfied="false"/>
       </dependencies>
       <test>
          <stylesheet file="error-3175a.xsl"/>
@@ -9974,9 +9976,12 @@
    </test-case>
 
    <test-case name="error-3245a">
-      <description>Error: It is a dynamic error if the value of the validate option is true 
-      and the processor is not schema-aware.</description>
-      <created by="Michael Kay" on="2014-08-25"/>
+      <description>
+         Error: It is a dynamic error if the value of the validate option is true 
+         and the processor is not schema-aware.
+      </description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <modified by="Abel Braaksma" on="2015-04-07" change="Expected error was XTDE3240, but should be XTDE3245 (as in descr of test)" />
       <dependencies>
          <spec value="XSLT30+"/>
          <feature value="schema_aware" satisfied="false"/>
@@ -9986,7 +9991,7 @@
          <initial-template name="main"/>
       </test>
       <result>
-         <error code="XTDE3240"/>
+         <error code="XTDE3245"/>
       </result>
    </test-case>
 
@@ -10015,6 +10020,7 @@
                      validate, unescape, or fallback,
                      and whose value is not a permitted value for that key.</description>
       <created by="Michael Kay" on="2014-08-25"/>
+      <modified by="Abel Braaksma" on="2015-04-07" change="Fixed typo, as='element' into as='element()'"/>
       <dependencies>
          <spec value="XSLT30+"/>
       </dependencies>
@@ -10051,6 +10057,7 @@
                   $input is not valid according to the schema for the XML representation of
                   JSON.</description>
       <created by="Michael Kay" on="2014-08-25"/>
+      <modified by="Abel Braaksma" on="2015-04-07" change="Fixed typo, as='element' into as='element()'"/>
       <dependencies>
          <spec value="XSLT30+"/>
       </dependencies>
--- a/tests/misc/error/error-3175a.xsl	Tue Apr 07 07:33:26 2015 +0200
+++ b/tests/misc/error/error-3175a.xsl	Tue Apr 07 08:41:26 2015 +0200
@@ -7,8 +7,7 @@
             
    <xsl:template name="main">
       <out>
-         <xsl:message error-code="Q{http://www.w3.org/2005/xqt-errors}XTDE3175">Test not yet implemented</xsl:message>
-         <x/>
+         <xsl:evaluate xpath="'1 + 2'" />
       </out>
    </xsl:template>
    
--- a/tests/misc/error/error-3255a.xsl	Tue Apr 07 07:33:26 2015 +0200
+++ b/tests/misc/error/error-3255a.xsl	Tue Apr 07 08:41:26 2015 +0200
@@ -6,7 +6,7 @@
                   validate, unescape, or fallback,
                   and whose value is not a permitted value for that key.-->
                   
-   <xsl:variable name="x" as="element">
+   <xsl:variable name="x" as="element()">
      <null xmlns="http://www.w3.org/2013/XSL/json"/>
    </xsl:variable>               
                   
--- a/tests/misc/error/error-3265a.xsl	Tue Apr 07 07:33:26 2015 +0200
+++ b/tests/misc/error/error-3265a.xsl	Tue Apr 07 08:41:26 2015 +0200
@@ -5,7 +5,7 @@
                   $input is not valid according to the schema for the XML representation of
                   JSON.-->
                   
-   <xsl:variable name="x" as="element">
+   <xsl:variable name="x" as="element()">
      <null xmlns="http://www.w3.org/2013/XSL/json">0</null>
    </xsl:variable>