Spec change for built-in template rules
authorMichael Kay <mike@saxonica.com>
Thu, 02 Jul 2015 22:34:32 +0100
changeset 1005 800d6241ce19
parent 1004 d5ec1b9d8ad5
child 1006 86a3eaa47e10
Spec change for built-in template rules
tests/attr/mode/_mode-test-set.xml
tests/attr/mode/mode-1437.xsl
--- a/tests/attr/mode/_mode-test-set.xml	Thu Jul 02 22:33:53 2015 +0100
+++ b/tests/attr/mode/_mode-test-set.xml	Thu Jul 02 22:34:32 2015 +0100
@@ -1608,6 +1608,7 @@
       <description>Test xsl:mode on-no-match=deep-skip; streaming</description>
       <keywords>xsl:mode on-no-match-attribute streamable deep-skip document-node</keywords>
       <created by="Michael Kay" on="2013-06-15"/>
+      <modified by="Michael Kay" on="2015-07-02" change="effect of deep-skip on document nodes has changed"/>
       <environment ref="mode-14s"/>
       <dependencies>
          <spec value="XSLT30+"/>
@@ -1617,7 +1618,7 @@
          <stylesheet file="mode-1437.xsl"/>
       </test>
       <result>
-         <assert>empty(/node())</assert>
+         <assert-xml><![CDATA[<o>book<o>bktlong</o></o>]]></assert-xml>
       </result>
    </test-case>
    
--- a/tests/attr/mode/mode-1437.xsl	Thu Jul 02 22:33:53 2015 +0100
+++ b/tests/attr/mode/mode-1437.xsl	Thu Jul 02 22:34:32 2015 +0100
@@ -1,16 +1,17 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:xs="http://www.w3.org/2001/XMLSchema"
-    xmlns:math="http://www.w3.org/2005/xpath-functions/math"
     exclude-result-prefixes="xs"
     version="3.0">
     
-    <!-- No match for document node so nothing should be output -->
+    <!-- No match for document node, but spec has changed so its children get processed -->
     
     <xsl:mode streamable="yes" on-no-match="deep-skip" />
     
     <xsl:template match="book | bktlong">
-        <xsl:value-of select="name(.)" separator="|"/>
+      <o>
+        <xsl:value-of select="name(.)"/>
         <xsl:apply-templates />
+      </o>  
     </xsl:template>
     
 </xsl:stylesheet>