New test case in response to a Saxon bug
authorMichael Kay <mike@saxonica.com>
Wed, 15 Jul 2015 13:20:57 +0100
changeset 1020 35d51e999707
parent 1019 b6d0aaa561e0
child 1021 5eb9b363af2e
New test case in response to a Saxon bug
tests/attr/expand-text/_expand-text-test-set.xml
tests/attr/expand-text/cvt-031.xsl
--- a/tests/attr/expand-text/_expand-text-test-set.xml	Fri Jul 10 11:38:29 2015 +0100
+++ b/tests/attr/expand-text/_expand-text-test-set.xml	Wed Jul 15 13:20:57 2015 +0100
@@ -489,7 +489,7 @@
       </result>
    </test-case>
    
-   <test-case name="cvt-029b">
+   <test-case name="cvt-030">
       <description>TVT as result of function: must be a text node</description>
       <keywords>expand-text-attribute</keywords>
       <created by="Michael Kay" on="2015-07-01"/>
@@ -506,6 +506,24 @@
          </all-of>   
       </result>
    </test-case>
+   
+   <test-case name="cvt-031">
+      <description>TVTs enabled for an empty xsl:text element (Saxon bug from Patrik Stellmann)</description>
+      <keywords>expand-text-attribute</keywords>
+      <created by="Michael Kay" on="2015-07-15"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="cvt-031.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <all-of>
+            <assert>/a = ""</assert>
+         </all-of>   
+      </result>
+   </test-case>
 
 
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/attr/expand-text/cvt-031.xsl	Wed Jul 15 13:20:57 2015 +0100
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl        = "http://www.w3.org/1999/XSL/Transform"
+       version="3.0" expand-text="yes">
+       <xsl:template match="/">
+               <a><xsl:text/></a>
+       </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file