Bug 28426, force error to be raised
authorabraaksm
Tue, 07 Apr 2015 09:18:28 +0200
changeset 932 d65a0894d476
parent 931 82bef93bed91
child 933 fd2351c8c0d6
Bug 28426, force error to be raised
tests/misc/error/_error-test-set.xml
tests/misc/error/error-XPTY0004f.xsl
--- a/tests/misc/error/_error-test-set.xml	Tue Apr 07 09:03:54 2015 +0200
+++ b/tests/misc/error/_error-test-set.xml	Tue Apr 07 09:18:28 2015 +0200
@@ -11540,9 +11540,10 @@
       </result>
    </test-case>
 
-   <test-case name="error-XPTY004f">
+   <test-case name="error-XPTY0004f">
       <description>"." used when not a node - optionally a static error even though never executed. Was error-code-182.</description>
       <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Abel Braakmsa" on="2015-04-07" change="Bug 28426, the function must be called to raise the error"/>
       <environment ref="error001"/>
       <dependencies>
          <spec value="XSLT20+"/>
--- a/tests/misc/error/error-XPTY0004f.xsl	Tue Apr 07 09:03:54 2015 +0200
+++ b/tests/misc/error/error-XPTY0004f.xsl	Tue Apr 07 09:18:28 2015 +0200
@@ -7,6 +7,7 @@
 
 <xsl:template match="/">
 <a/>
+  <xsl:value-of select="f:doc()" xmlns:f="http://f.com/"/>
 <xsl:message>***** error not detected! *****</xsl:message>
 </xsl:template>