New test for (non-)shadow attributes
authorMichael Kay <mike@saxonica.com>
Wed, 18 Feb 2015 11:40:08 +0000
changeset 822 063bca1530c1
parent 821 e3eaf0110b9e
child 823 9bdf7ae265f5
New test for (non-)shadow attributes
tests/attr/shadow/_shadow-test-set.xml
tests/attr/shadow/shadow-007.xsl
--- a/tests/attr/shadow/_shadow-test-set.xml	Wed Feb 18 11:39:21 2015 +0000
+++ b/tests/attr/shadow/_shadow-test-set.xml	Wed Feb 18 11:40:08 2015 +0000
@@ -126,5 +126,23 @@
          <assert>/out = '1'</assert>
       </result>
    </test-case>
+   
+   <test-case name="shadow-007">
+      <description>
+         Underscored attributes on LREs are unaffected
+      </description>
+      <keywords>static-variable xsl:template _xpath-default-namespace</keywords>
+      <created by="Michael Kay" on="2015-02-06"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="shadow-007.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<out one="1" _one="1.0" _two="two"/>]]></assert-xml>
+      </result>
+   </test-case>
 
 </test-set>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/attr/shadow/shadow-007.xsl	Wed Feb 18 11:40:08 2015 +0000
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
+
+   <!-- underscored attributes on LREs are unaffected -->
+    
+   <xsl:template name="main">
+      <out one="1" _one="1.0" _two="two"/>
+   </xsl:template>
+   
+ 
+   
+</xsl:transform>