Another streamed grouping test
authorMichael Kay <mike@saxonica.com>
Thu, 06 Jul 2017 10:49:27 +0100
changeset 1713 c2aa9ced325c
parent 1712 bdf88f8d85eb
child 1714 6e097efc9c99
Another streamed grouping test
tests/strm/si-for-each-group/_si-for-each-group-test-set.xml
tests/strm/si-for-each-group/si-group-059.xml
--- a/tests/strm/si-for-each-group/_si-for-each-group-test-set.xml	Thu Jul 06 09:23:09 2017 +0100
+++ b/tests/strm/si-for-each-group/_si-for-each-group-test-set.xml	Thu Jul 06 10:49:27 2017 +0100
@@ -1230,6 +1230,25 @@
       </result>
    </test-case>
    
+   <test-case name="si-group-059a">
+      <description>Streamed grouping - conditional within xsl:for-each-group (variant of -059 with different source document).</description>
+      <created by="Michael Kay" on="2017-07-06"/>
+      <environment>
+         <source file="si-group-059.xml" role="." streaming="true"/>
+      </environment>
+      <test>
+         <stylesheet file="si-group-059.xsl"/>
+      </test>
+      <result>
+         <all-of>
+            <assert-xml><![CDATA[<Element><para>Test0</para><group><h1><title>Name1</title></h1
+               ><para/></group><group><h1><title>Name2</title></h1
+               ><para>Test1</para><para>Test2</para></group><group><h1><title>Name3</title></h1
+               ><para>Test3</para><para>Test4</para></group></Element>]]></assert-xml>
+         </all-of>
+      </result>
+   </test-case>
+   
 
    <test-case name="si-group-101">
       <description>Streamed grouping - group-starting-with </description>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/strm/si-for-each-group/si-group-059.xml	Thu Jul 06 10:49:27 2017 +0100
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Element>
+    <para>Test0</para>
+    <h1>
+        <title>Name1</title>
+    </h1>
+    <h1>
+        <title>Name2</title>
+    </h1>
+    <para>Test1</para>
+    <para>Test2</para>
+    <h1>
+        <title>Name3</title>
+    </h1>
+    <para>Test3</para>
+    <para>Test4</para>
+</Element>
\ No newline at end of file