tests/strm/si-fork/_si-fork-test-set.xml
author Michael Kay <mike@saxonica.com>
Wed, 04 Jul 2018 20:25:01 +0100
changeset 1868 3deaeb341727
parent 1823 19819cd098b5
child 1883 af210ed49409
permissions -rw-r--r--
Correct expected result of test using xsl:try with d-o-e
519
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
     2
<test-set xmlns="http://www.w3.org/2012/10/xslt-test-catalog" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="si-fork">
1689
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
     3
   <description>xsl:fork instruction with streaming</description>
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     4
   
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     5
   <environment name="si-fork-A">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     6
     <stylesheet file="si-fork-A.xsl"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     7
   </environment>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     8
   
1016
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
     9
   <environment name="si-fork-B">
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
    10
     <stylesheet file="si-fork-B.xsl"/>
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
    11
   </environment>
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
    12
   
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    13
   <dependencies>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    14
      <spec value="XSLT30+"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    15
      <feature value="streaming"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    16
   </dependencies>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    17
   
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    18
   <test-case name="si-fork-001">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    19
      <description>Basic Test of xsl:stream instruction with xsl:fork</description>
519
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
    20
      <keywords>multiple-xsl-sequence-children fn:avg PathExpr xsl:value-of striding consuming</keywords>
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    21
      <created by="Michael Kay" on="2014-01-13"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    22
      <environment ref="si-fork-A"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    23
      <test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    24
         <initial-template name="f-001"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    25
      </test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    26
      <result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    27
         <assert-xml><![CDATA[<out><a>9.06</a><b>420</b></out>]]></assert-xml>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    28
      </result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    29
   </test-case>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    30
   
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    31
   <test-case name="si-fork-002">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    32
      <description>xsl:stream instruction with xsl:fork, some motionless prongs</description>
519
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
    33
      <keywords>multiple-xsl-sequence-children fn:avg PathExpr striding xsl:value-of consuming</keywords>
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    34
      <created by="Michael Kay" on="2014-01-13"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    35
      <environment ref="si-fork-A"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    36
      <test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    37
         <initial-template name="f-002"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    38
      </test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    39
      <result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    40
         <assert-xml><![CDATA[<out>[<a>9.06</a><b>420</b>]</out>]]></assert-xml>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    41
      </result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    42
   </test-case>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    43
   
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    44
   <test-case name="si-fork-003">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    45
      <description>xsl:stream instruction with xsl:fork, split input to multiple result files</description>
519
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
    46
      <keywords>multiple-xsl-sequence-children xsl:result-document motionless-predicate striding PathExpr fn:number consuming</keywords>
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    47
      <created by="Michael Kay" on="2014-01-13"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    48
      <environment ref="si-fork-A"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    49
      <test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    50
         <initial-template name="f-003"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    51
      </test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    52
      <result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    53
         <all-of>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    54
            <assert-result-document uri="credits.xml">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    55
               <all-of>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    56
                  <assert>count(/credits/transaction) = 15</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    57
                  <assert>/credits/transaction[1]/@value = 13.24</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    58
         	   </all-of>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    59
         	</assert-result-document>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    60
         	<assert-result-document uri="debits.xml">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    61
         		<all-of>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    62
                  <assert>count(/debits/transaction) = 4</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    63
                  <assert>/debits/transaction[1]/@value = -15.00</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    64
         	   </all-of>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    65
         	</assert-result-document>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    66
         </all-of>	
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    67
      </result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    68
   </test-case>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    69
   
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    70
   <test-case name="si-fork-004">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    71
      <description>xsl:stream instruction with xsl:fork, all prongs motionless</description>
519
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
    72
      <keywords>multiple-xsl-sequence-children motionless lre literals</keywords>
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    73
      <created by="Michael Kay" on="2014-01-13"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    74
      <environment ref="si-fork-A"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    75
      <test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    76
         <initial-template name="f-004"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    77
      </test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    78
      <result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    79
         <assert-xml><![CDATA[<out><in>[<a/><b/>]</in></out>]]></assert-xml>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    80
      </result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    81
   </test-case>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    82
   
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    83
   <test-case name="si-fork-005">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    84
      <description>xsl:stream / xsl:for-each / xsl:fork </description>
519
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
    85
      <keywords>xsl:for-each multiple-xsl-sequence-children AxisStep striding consuming</keywords>
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    86
      <created by="Michael Kay" on="2014-01-13"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    87
      <environment ref="si-fork-A"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    88
      <test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    89
         <initial-template name="f-005"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    90
      </test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    91
      <result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    92
         <all-of>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    93
            <assert>/out/book[@title="Pride and Prejudice"]/@price-per-page = "0.0141"</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    94
            <assert>count(/out/book) = 6</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    95
            <assert>count(//*) = 7</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    96
         </all-of>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    97
      </result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    98
   </test-case>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    99
   
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   100
   <test-case name="si-fork-006">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   101
      <description>xsl:fork with only one branch consuming</description>
519
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
   102
      <keywords>multiple-xsl-sequence-children consuming motionless mixed-sweep</keywords>
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   103
      <created by="Michael Kay" on="2014-01-13"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   104
      <environment ref="si-fork-A"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   105
      <test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   106
         <initial-template name="f-006"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   107
      </test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   108
      <result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   109
         <all-of>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   110
            <assert>/out/book[1][@category="MMP"][.="Pride and Prejudice"]</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   111
            <assert>/out/book[2][@category="P"][.="Wuthering Heights"]</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   112
            <assert>count(/out/book) = 6</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   113
            <assert>count(//*) = 13</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   114
         </all-of>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   115
      </result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   116
   </test-case>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   117
   
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   118
   <test-case name="si-fork-007">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   119
      <description>xsl:fork with try/catch within a single prong</description>
519
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
   120
      <keywords>multiple-xsl-sequence-children xsl:try fn:outermost crawling-then-striding XPTY0004 consuming</keywords>
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   121
      <created by="Michael Kay" on="2014-01-13"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   122
      <environment ref="si-fork-A"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   123
      <test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   124
         <initial-template name="f-007"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   125
      </test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   126
      <result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   127
		 <assert>/out = "2520 9.06"</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   128
      </result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   129
   </test-case>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   130
   
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   131
   <test-case name="si-fork-008">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   132
      <description>xsl:fork with try/catch around the whole xsl:fork</description>
519
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
   133
      <keywords>multiple-xsl-sequence-children consuming fn:outermost crawling-then-striding</keywords>
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   134
      <created by="Michael Kay" on="2014-01-13"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   135
      <environment ref="si-fork-A"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   136
      <test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   137
         <initial-template name="f-008"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   138
      </test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   139
      <result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   140
		 <assert>/out = ""</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   141
      </result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   142
   </test-case>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   143
   
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   144
   <test-case name="si-fork-009">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   145
      <description>xsl:fork used to create attribute nodes</description>
519
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
   146
      <keywords>multiple-xsl-sequence-children AxisStep consuming striding</keywords>
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   147
      <created by="Michael Kay" on="2014-01-13"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   148
      <environment ref="si-fork-A"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   149
      <test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   150
         <initial-template name="f-009"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   151
      </test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   152
      <result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   153
         <all-of>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   154
		   <assert>/out/book[1][@title="Pride and Prejudice"][@author="Jane Austen"][@publisher="Modern Library"][@price="4.95"]</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   155
		   <assert>/out/book[6][@title="The Eyre Affair"][@author="Jasper Fforde"][@publisher="Penguin"][@price="16.47"]</assert>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   156
		 </all-of>  
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   157
      </result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   158
   </test-case>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   159
   
1016
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
   160
   <test-case name="si-fork-101">
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
   161
      <description>xsl:stream instruction with xsl:fork with xsl:for-each-group</description>
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
   162
      <created by="Michael Kay" on="2015-07-09"/>
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
   163
      <environment ref="si-fork-B"/>
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
   164
      <test>
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
   165
         <initial-template name="g-001"/>
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
   166
      </test>
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
   167
      <result>
1270
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   168
         <all-of>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   169
            <assert>count(/out/CAT) = 3</assert>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   170
            <assert>count(/out/CAT[@ID="MMP"]/ITEM) = 1</assert>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   171
            <assert>count(/out/CAT[@ID="P"]/ITEM) = 4</assert>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   172
            <assert>count(/out/CAT[@ID="H"]/ITEM) = 1</assert>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   173
            <assert>every $I in //ITEM satisfies $I/@CAT = $I/../@ID</assert>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   174
         </all-of>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   175
      </result>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   176
   </test-case>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   177
   
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   178
   <test-case name="si-fork-102">
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   179
      <description>xsl:stream instruction with xsl:fork with xsl:for-each-group, population is grounded</description>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   180
      <created by="Michael Kay" on="2016-02-24"/>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   181
      <environment ref="si-fork-B"/>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   182
      <test>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   183
         <initial-template name="g-002"/>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   184
      </test>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   185
      <result>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   186
         <all-of>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   187
            <assert>count(/out/CAT) = 3</assert>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   188
            <assert>count(/out/CAT[@ID="MMP"]/ITEM) = 1</assert>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   189
            <assert>count(/out/CAT[@ID="P"]/ITEM) = 4</assert>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   190
            <assert>count(/out/CAT[@ID="H"]/ITEM) = 1</assert>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   191
            <assert>every $I in //ITEM satisfies $I/@CAT = $I/../@ID</assert>
95f11d976732 Another test for forked grouping (more to come)
Michael Kay <mike@saxonica.com>
parents: 1016
diff changeset
   192
         </all-of>
1016
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
   193
      </result>
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
   194
   </test-case>
e6dbb71e09d2 Add a (placeholder) test for xsl:stream/xsl:fork/xsl:for-each-group
Michael Kay <mike@saxonica.com>
parents: 519
diff changeset
   195
   
1271
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   196
   <test-case name="si-fork-103">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   197
      <description>xsl:stream/xsl:fork/xsl:for-each-group/@group-by, multiple result documents, population is striding</description>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   198
      <created by="Michael Kay" on="2016-02-24"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   199
      <environment ref="si-fork-B"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   200
      <test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   201
         <initial-template name="g-003"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   202
      </test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   203
      <result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   204
         <all-of>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   205
            <assert-result-document uri="P.xml">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   206
               <all-of>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   207
                  <assert>/CAT[@ID="P"]/ITEM</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   208
                  <assert>count(/CAT/ITEM) = 4</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   209
               </all-of>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   210
            </assert-result-document>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   211
            <assert-result-document uri="MMP.xml">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   212
               <all-of>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   213
                  <assert>/CAT[@ID="MMP"]/ITEM</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   214
                  <assert>count(/CAT/ITEM) = 1</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   215
               </all-of>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   216
            </assert-result-document>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   217
            <assert-result-document uri="H.xml">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   218
               <all-of>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   219
                  <assert>/CAT[@ID="H"]/ITEM</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   220
                  <assert>count(/CAT/ITEM) = 1</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   221
               </all-of>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   222
            </assert-result-document>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   223
         </all-of>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   224
      </result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   225
   </test-case>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   226
   
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   227
   <test-case name="si-fork-104">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   228
      <description>xsl:stream/xsl:fork/xsl:for-each-group/@group-by, aggregate over current-group</description>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   229
      <created by="Michael Kay" on="2016-02-24"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   230
      <environment ref="si-fork-B"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   231
      <test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   232
         <initial-template name="g-004"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   233
      </test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   234
      <result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   235
         <all-of>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   236
            <assert>count(/out/CAT) = 3</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   237
            <assert>/out/CAT[@ID="MMP"][@SIZE="1"]</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   238
            <assert>/out/CAT[@ID="P"][@SIZE="4"]</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   239
            <assert>/out/CAT[@ID="H"][@SIZE="1"]</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   240
         </all-of>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   241
      </result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   242
   </test-case>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   243
   
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   244
   <test-case name="si-fork-105">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   245
      <description>xsl:stream/xsl:fork/xsl:for-each-group/@group-by, non-consuming action</description>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   246
      <created by="Michael Kay" on="2016-02-24"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   247
      <environment ref="si-fork-B"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   248
      <test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   249
         <initial-template name="g-005"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   250
      </test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   251
      <result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   252
         <all-of>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   253
            <assert>count(/out/CAT) = 3</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   254
            <assert>/out/CAT[@ID="MMP"]</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   255
            <assert>/out/CAT[@ID="P"]</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   256
            <assert>/out/CAT[@ID="H"]</assert>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   257
         </all-of>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   258
      </result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   259
   </test-case>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   260
   
1275
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   261
   <test-case name="si-fork-106">
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   262
      <description>xsl:for-each-group with both striding and grounded items</description>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   263
      <created by="Michael Kay" on="2016-02-25"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   264
      <environment ref="si-fork-B"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   265
      <test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   266
         <initial-template name="g-006"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   267
      </test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   268
      <result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   269
         <all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   270
            <assert>count(/out/CAT) = 3</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   271
            <assert>count(/out/CAT[@ID="MMP"]/ITEM) = 1</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   272
            <assert>count(/out/CAT[@ID="P"]/ITEM) = 4</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   273
            <assert>count(/out/CAT[@ID="H"]/ITEM) = 2</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   274
            <assert>every $I in //ITEM satisfies $I/@CAT = $I/../@ID</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   275
         </all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   276
      </result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   277
   </test-case>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   278
   
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   279
   <test-case name="si-fork-107">
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   280
      <description>xsl:for-each-group with both striding and grounded items</description>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   281
      <created by="Michael Kay" on="2016-02-25"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   282
      <environment ref="si-fork-B"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   283
      <test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   284
         <initial-template name="g-007"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   285
      </test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   286
      <result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   287
         <all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   288
            <assert>count(/out/CAT) = 3</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   289
            <assert>count(/out/CAT[@ID="MMP"]/ITEM) = 1</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   290
            <assert>count(/out/CAT[@ID="P"]/ITEM) = 4</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   291
            <assert>count(/out/CAT[@ID="H"]/ITEM) = 2</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   292
            <assert>every $I in //ITEM satisfies $I/@CAT = $I/../@ID</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   293
         </all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   294
      </result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   295
   </test-case>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   296
   
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   297
   <test-case name="si-fork-108">
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   298
      <description>xsl:for-each-group downward selection from current-group(), mixed posture</description>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   299
      <created by="Michael Kay" on="2016-02-25"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   300
      <environment ref="si-fork-B"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   301
      <test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   302
         <initial-template name="g-008"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   303
      </test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   304
      <result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   305
         <all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   306
            <assert>count(/out/CAT) = 3</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   307
            <assert>count(/out/CAT[@ID="MMP"]/PRICE) = 1</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   308
            <assert>count(/out/CAT[@ID="P"]/PRICE) = 4</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   309
            <assert>count(/out/CAT[@ID="H"]/PRICE) = 2</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   310
         </all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   311
      </result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   312
   </test-case>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   313
   
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   314
   <test-case name="si-fork-109">
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   315
      <description>xsl:for-each-group downward selection from current-group(), mixed posture</description>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   316
      <created by="Michael Kay" on="2016-02-25"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   317
      <environment ref="si-fork-B"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   318
      <test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   319
         <initial-template name="g-009"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   320
      </test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   321
      <result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   322
         <all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   323
            <assert>count(/out/CAT) = 3</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   324
            <assert>count(/out/CAT[@ID="MMP"]/PRICE) = 1</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   325
            <assert>count(/out/CAT[@ID="P"]/PRICE) = 4</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   326
            <assert>count(/out/CAT[@ID="H"]/PRICE) = 2</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   327
         </all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   328
      </result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   329
   </test-case>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   330
   
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   331
   <test-case name="si-fork-110">
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   332
      <description>xsl:for-each-group - group-by - composite key</description>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   333
      <created by="Michael Kay" on="2016-02-29"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   334
      <environment ref="si-fork-B"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   335
      <test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   336
         <initial-template name="g-010"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   337
      </test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   338
      <result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   339
         <all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   340
            <assert>count(/out/CAT) = 5</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   341
            <assert>/out/CAT[@DATE="2002-12-31"][@LANG="English"][@AVG-PRICE="5.765"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   342
            <assert>/out/CAT[@DATE="1984-05-01"][@LANG="English"][@AVG-PRICE="4.95"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   343
            <assert>/out/CAT[@DATE="1998-09-01"][@LANG="English"][@AVG-PRICE="4.95"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   344
            <assert>/out/CAT[@DATE="2005-07-11"][@LANG="English"][@AVG-PRICE="16.47"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   345
            <assert>/out/CAT[@DATE="2003-02-25"][@LANG="English"][@AVG-PRICE="16.47"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   346
         </all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   347
      </result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   348
   </test-case>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   349
   
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   350
   <test-case name="si-fork-111">
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   351
      <description>xsl:for-each-group - group-by - composite key</description>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   352
      <created by="Michael Kay" on="2016-02-29"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   353
      <environment ref="si-fork-B"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   354
      <test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   355
         <initial-template name="g-011"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   356
      </test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   357
      <result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   358
         <all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   359
            <assert>count(/out/CAT) = 4</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   360
            <assert>/out/CAT[@ID="MMP"][@COUNT="1"][@AVG-QTY="187"][@AUTHOR="Jane Austen"][@PRICE="4.95"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   361
            <assert>/out/CAT[@ID="P"][@COUNT="1"][@AVG-QTY="113"][@AUTHOR="Charlotte Brontë"][@PRICE="6.58"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   362
            <assert>/out/CAT[@ID="P"][@COUNT="2"][@AVG-QTY="107"][@AUTHOR="Thomas Hardy"][@PRICE="4.95"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   363
            <assert>/out/CAT[@ID=("H P", "P H")][@COUNT="2"][@AVG-QTY="129"][@AUTHOR="Jasper Fforde"][@PRICE="16.47"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   364
         </all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   365
      </result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   366
   </test-case>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   367
   
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   368
   <test-case name="si-fork-112">
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   369
      <description>xsl:for-each-group - group-by - position() of groups</description>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   370
      <created by="Michael Kay" on="2016-02-29"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   371
      <environment ref="si-fork-B"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   372
      <test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   373
         <initial-template name="g-012"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   374
      </test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   375
      <result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   376
         <all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   377
            <assert>count(/out/g) = 4</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   378
            <assert>/out/g[@author="Jane Austen" and @position="1"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   379
            <assert>/out/g[@author="Charlotte Brontë" and @position="2"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   380
            <assert>/out/g[@author="Thomas Hardy" and @position="3"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   381
            <assert>/out/g[@author="Jasper Fforde" and @position="4"]</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   382
         </all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   383
      </result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   384
   </test-case>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   385
   
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   386
   <test-case name="si-fork-113">
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   387
      <description>xsl:for-each-group - group-by - current-grouping-key() not available in called template</description>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   388
      <created by="Michael Kay" on="2016-02-29"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   389
      <environment ref="si-fork-B"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   390
      <test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   391
         <initial-template name="g-013"/>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   392
      </test>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   393
      <result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   394
         <all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   395
            <assert>count(/out/g/h) = 4</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   396
            <assert>every $h in /out/g/h satisfies $h/@key = "#absent#"</assert>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   397
         </all-of>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   398
      </result>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   399
   </test-case>
57e7b2536e8a More tests for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1271
diff changeset
   400
   
1286
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   401
   <test-case name="si-fork-114">
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   402
      <description>xsl:for-each-group - group-by - current-group() not available in called template</description>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   403
      <created by="Michael Kay" on="2016-02-29"/>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   404
      <environment ref="si-fork-B"/>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   405
      <test>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   406
         <initial-template name="g-014"/>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   407
      </test>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   408
      <result>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   409
         <all-of>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   410
            <assert>count(/out/g/h) = 4</assert>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   411
            <assert>every $h in /out/g/h satisfies $h/@size = "#absent#"</assert>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   412
         </all-of>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   413
      </result>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   414
   </test-case>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   415
   
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   416
   <test-case name="si-fork-115">
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   417
      <description>xsl:for-each-group - group-by - current-grouping-key() not available in applied template</description>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   418
      <created by="Michael Kay" on="2016-02-29"/>
1550
51565d7c355e Extract si-fork-115/116 into separate stylesheets as they are now static errors
Michael Kay <mike@saxonica.com>
parents: 1517
diff changeset
   419
      <modified by="Michael Kay" on="2017-02-04" change="extracted test into separate stylesheet as it's a static error"/>
1286
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   420
      <test>
1550
51565d7c355e Extract si-fork-115/116 into separate stylesheets as they are now static errors
Michael Kay <mike@saxonica.com>
parents: 1517
diff changeset
   421
         <stylesheet file="si-fork-115.xsl"/>
1286
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   422
         <initial-template name="g-015"/>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   423
      </test>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   424
      <result>
1550
51565d7c355e Extract si-fork-115/116 into separate stylesheets as they are now static errors
Michael Kay <mike@saxonica.com>
parents: 1517
diff changeset
   425
         <error code="XTSE3430"/>
1286
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   426
      </result>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   427
   </test-case>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   428
   
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   429
   <test-case name="si-fork-116">
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   430
      <description>xsl:for-each-group - group-by - current-group() not available in applied template</description>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   431
      <created by="Michael Kay" on="2016-02-29"/>
1550
51565d7c355e Extract si-fork-115/116 into separate stylesheets as they are now static errors
Michael Kay <mike@saxonica.com>
parents: 1517
diff changeset
   432
      <modified by="Michael Kay" on="2017-02-04" change="extracted test into separate stylesheet as it's a static error"/>
1286
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   433
      <test>
1550
51565d7c355e Extract si-fork-115/116 into separate stylesheets as they are now static errors
Michael Kay <mike@saxonica.com>
parents: 1517
diff changeset
   434
         <stylesheet file="si-fork-116.xsl"/>
1286
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   435
         <initial-template name="g-016"/>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   436
      </test>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   437
      <result>
1550
51565d7c355e Extract si-fork-115/116 into separate stylesheets as they are now static errors
Michael Kay <mike@saxonica.com>
parents: 1517
diff changeset
   438
         <error code="XTSE3430"/>
1286
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   439
      </result>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   440
   </test-case>
32214faaa292 New xsl:fork/xsl:for-each-group test
Michael Kay <mike@saxonica.com>
parents: 1275
diff changeset
   441
   
1517
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   442
   <test-case name="si-fork-117">
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   443
      <description>xsl:for-each-group - group-by - items landing in more than one group - non-consuming action</description>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   444
      <created by="Michael Kay" on="2016-12-08"/>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   445
      <environment ref="si-fork-B"/>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   446
      <test>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   447
         <initial-template name="g-017"/>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   448
      </test>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   449
      <result>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   450
         <all-of>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   451
            <assert>count(/out/g) = 24</assert>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   452
            <assert>/out/g[@author-contains="J"]/books="Pride and Prejudice|The Big Over Easy|The Eyre Affair"</assert>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   453
            <assert>/out/g[@author-contains="n"]/books="Pride and Prejudice|Wuthering Heights"</assert>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   454
            <assert>/out/g[@author-contains="A"]/books="Pride and Prejudice"</assert>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   455
         </all-of>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   456
      </result>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   457
   </test-case>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   458
   
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   459
   <test-case name="si-fork-118">
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   460
      <description>xsl:for-each-group - group-by - items landing in more than one group - consuming action</description>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   461
      <created by="Michael Kay" on="2016-12-08"/>
1598
9a3e6e2a9344 Fix spurious expected results for si-fork-118
Michael Kay <mike@saxonica.com>
parents: 1550
diff changeset
   462
      <modified by="Michael Kay" on="2017-02-15" change="add expected results"/>
1517
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   463
      <environment ref="si-fork-B"/>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   464
      <test>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   465
         <initial-template name="g-018"/>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   466
      </test>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   467
      <result>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   468
         <all-of>
1598
9a3e6e2a9344 Fix spurious expected results for si-fork-118
Michael Kay <mike@saxonica.com>
parents: 1550
diff changeset
   469
            <assert>count(/out/CAT) = 3</assert>
9a3e6e2a9344 Fix spurious expected results for si-fork-118
Michael Kay <mike@saxonica.com>
parents: 1550
diff changeset
   470
            <assert>/out/CAT[@ID="H"] = "The Big Over Easy|Ulysses"</assert>
9a3e6e2a9344 Fix spurious expected results for si-fork-118
Michael Kay <mike@saxonica.com>
parents: 1550
diff changeset
   471
            <assert>/out/CAT[@ID="M"] = "Pride and Prejudice"</assert>
9a3e6e2a9344 Fix spurious expected results for si-fork-118
Michael Kay <mike@saxonica.com>
parents: 1550
diff changeset
   472
            <assert>/out/CAT[@ID="P"] = "Pride and Prejudice|Wuthering Heights|Tess of the d'Urbervilles|Jude the Obscure|The Eyre Affair"</assert>
1517
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   473
         </all-of>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   474
      </result>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   475
   </test-case>
bba66f2671bd streamed for-each-group/@group-by with items landing in more than one group
Michael Kay <mike@saxonica.com>
parents: 1402
diff changeset
   476
   
1402
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   477
   <test-case name="si-fork-801">
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   478
      <description>Streamable xsl:fork - returns streamed nodes</description>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   479
      <created by="Michael Kay after Martin Honnen" on="2016-08-15"/>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   480
      <environment>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   481
         <source role="." file="si-fork-801.xml" streaming="true"/>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   482
      </environment>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   483
      <test>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   484
         <stylesheet file="si-fork-801.xsl"/>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   485
      </test>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   486
      <result>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   487
         <all-of>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   488
            <assert>/doc/body/*[1][self::heading='TOC']</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   489
            <assert>/doc/body/*[2][self::ordered-list][count(list-item/link/@href) = 3]</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   490
            <assert>/doc/body/*[3][self::heading][.='heading 1']['#'||@id = (//@href)[1]]</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   491
            <assert>/doc/body/*[4][self::section][.='section 1']</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   492
            <assert>/doc/body/*[5][self::heading][.='heading 2']['#'||@id = (//@href)[2]]</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   493
            <assert>/doc/body/*[6][self::section][.='section 2']</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   494
            <assert>/doc/body/*[7][self::heading][.='heading 3']['#'||@id = (//@href)[3]]</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   495
            <assert>/doc/body/*[8][self::section][.='section 3']</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   496
         </all-of>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   497
      </result>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   498
   </test-case>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   499
   
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   500
   <test-case name="si-fork-802">
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   501
      <description>Streamable xsl:fork</description>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   502
      <created by="Michael Kay after Martin Honnen" on="2016-08-15"/>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   503
      <environment>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   504
         <source role="." file="si-fork-802.xml" streaming="true"/>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   505
      </environment>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   506
      <test>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   507
         <stylesheet file="si-fork-802.xsl"/>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   508
      </test>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   509
      <result>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   510
         <all-of>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   511
            <assert-result-document uri="account01826370.xml">
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   512
               <all-of>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   513
                  <assert>count(/transactions/transaction) = 3</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   514
                  <assert>/transactions/transaction[1]/value = "5.60"</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   515
                  <assert>/transactions/transaction[2]/value = "-3.40"</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   516
                  <assert>/transactions/transaction[3]/value = "2.51"</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   517
               </all-of>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   518
            </assert-result-document>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   519
            <assert-result-document uri="account92741838.xml">
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   520
               <all-of>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   521
                  <assert>count(/transactions/transaction) = 2</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   522
                  <assert>/transactions/transaction[1]/value = "11.20"</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   523
                  <assert>/transactions/transaction[2]/value = "8.90"</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   524
               </all-of>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   525
            </assert-result-document>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   526
            <assert-result-document uri="account43861562.xml">
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   527
               <all-of>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   528
                  <assert>count(/transactions/transaction) = 2</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   529
                  <assert>/transactions/transaction[1]/value = "-1.99"</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   530
                  <assert>/transactions/transaction[2]/value = "5.31"</assert>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   531
               </all-of>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   532
            </assert-result-document>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   533
         </all-of>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   534
      </result>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   535
   </test-case>
9d80503c6fe3 Two new xsl:fork tests
Michael Kay <mike@saxonica.com>
parents: 1286
diff changeset
   536
   
1689
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   537
   <test-case name="si-fork-803">
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   538
      <description>Streamable xsl:fork containing xsl:for-each-group containing a map constructor</description>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   539
      <created by="Michael Kay after Martin Honnen" on="2017-06-15"/>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   540
      <environment>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   541
         <source role="." file="si-fork-803.xml" streaming="true"/>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   542
      </environment>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   543
      <test>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   544
         <stylesheet file="si-fork-803.xsl"/>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   545
      </test>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   546
      <result>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   547
         <all-of>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   548
            <assert>deep-equal(data(/html/body/table/tr/*[1]), ("Position", "1", "2", "3"))</assert>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   549
            <assert>deep-equal(data(/html/body/table/tr/*[2]), ("Country", "Italia", "France", "Deutschland"))</assert>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   550
            <assert>deep-equal(data(/html/body/table/tr/*[3]), ("City List", "Milano, Venezia", "Paris, Lyon, Toulouse", "München"))</assert>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   551
            <assert>deep-equal(data(/html/body/table/tr/*[4]), ("Population", "6", "15", "4"))</assert>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   552
         </all-of>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   553
      </result>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   554
   </test-case>
05e2e40f3dfe A new test for xsl:fork/xsl:for-each-group/@group-by
Michael Kay <mike@saxonica.com>
parents: 1598
diff changeset
   555
   
1692
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   556
   <test-case name="si-fork-804">
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   557
      <description>Streamable xsl:fork containing xsl:for-each-group containing an xsl:fork</description>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   558
      <created by="Michael Kay after Martin Honnen" on="2017-06-19"/>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   559
      <environment>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   560
         <source role="." file="si-fork-803.xml" streaming="true"/> <!--sic -->
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   561
      </environment>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   562
      <test>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   563
         <stylesheet file="si-fork-804.xsl"/>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   564
      </test>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   565
      <result>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   566
         <all-of>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   567
            <assert>deep-equal(data(/html/body/table/tr/*[1]), ("Position", "1", "2", "3"))</assert>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   568
            <assert>deep-equal(data(/html/body/table/tr/*[2]), ("Country", "Italia", "France", "Deutschland"))</assert>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   569
            <assert>deep-equal(data(/html/body/table/tr/*[3]), ("City List", "Milano, Venezia", "Paris, Lyon, Toulouse", "München"))</assert>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   570
            <assert>deep-equal(data(/html/body/table/tr/*[4]), ("Population", "6", "15", "4"))</assert>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   571
         </all-of>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   572
      </result>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   573
   </test-case>
cf9cebc97372 Fix bug 30131 (position() in merge keys)
Michael Kay <mike@saxonica.com>
parents: 1689
diff changeset
   574
   
1701
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   575
   <test-case name="si-fork-805">
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   576
      <description>Streamable xsl:fork containing xsl:for-each-group</description>
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   577
      <created by="Michael Kay after Martin Honnen" on="2017-06-22"/>
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   578
      <environment>
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   579
         <source role="." file="si-fork-805.xml" streaming="true"/> 
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   580
      </environment>
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   581
      <test>
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   582
         <stylesheet file="si-fork-805.xsl"/>
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   583
      </test>
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   584
      <result>
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   585
         <assert-xml><![CDATA[<Root><Brand><Vehicle>Car</Vehicle></Brand><Brand><Vehicle>Truck</Vehicle></Brand><Brand><Vehicle>Motorcycle</Vehicle></Brand></Root>]]></assert-xml>
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   586
      </result>
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   587
   </test-case>
27b3038279de New forked grouping test
Michael Kay <mike@saxonica.com>
parents: 1692
diff changeset
   588
   
1729
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   589
   <test-case name="si-fork-806">
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   590
      <description>Aggregate (avg) computed using streamable xsl:fork containing xsl:for-each-group</description>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   591
      <created by="Michael Kay after Martin Honnen" on="2017-07-13"/>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   592
      <environment>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   593
         <source role="." file="si-fork-806.xml" streaming="true"/> 
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   594
      </environment>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   595
      <test>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   596
         <stylesheet file="si-fork-806.xsl"/>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   597
      </test>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   598
      <result>
1741
03afa9383c55 Correct expected test results
Michael Kay <mike@saxonica.com>
parents: 1736
diff changeset
   599
         <all-of>
03afa9383c55 Correct expected test results
Michael Kay <mike@saxonica.com>
parents: 1736
diff changeset
   600
            <assert>/out/p[1] = 'Milano, Italia, 5.26'</assert>
03afa9383c55 Correct expected test results
Michael Kay <mike@saxonica.com>
parents: 1736
diff changeset
   601
            <assert>/out/p[2] = 'Padova, Italia, 0.81'</assert>
03afa9383c55 Correct expected test results
Michael Kay <mike@saxonica.com>
parents: 1736
diff changeset
   602
            <assert>/out/p[3] = 'Paris, France, 7.4'</assert>
03afa9383c55 Correct expected test results
Michael Kay <mike@saxonica.com>
parents: 1736
diff changeset
   603
         </all-of>
1729
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   604
      </result>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   605
   </test-case>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   606
   
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   607
   <test-case name="si-fork-807">
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   608
      <description>Aggregate (avg) computed using streamable xsl:fork containing xsl:for-each-group</description>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   609
      <created by="Michael Kay after Martin Honnen" on="2017-07-13"/>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   610
      <environment>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   611
         <source role="." file="si-fork-806.xml" streaming="true"/> <!-- sic -->
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   612
      </environment>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   613
      <test>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   614
         <stylesheet file="si-fork-807.xsl"/>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   615
      </test>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   616
      <result>
1741
03afa9383c55 Correct expected test results
Michael Kay <mike@saxonica.com>
parents: 1736
diff changeset
   617
         <all-of>
03afa9383c55 Correct expected test results
Michael Kay <mike@saxonica.com>
parents: 1736
diff changeset
   618
            <assert>/out/p[1] = 'Milano, Italia, 5.23, 5.29'</assert>
03afa9383c55 Correct expected test results
Michael Kay <mike@saxonica.com>
parents: 1736
diff changeset
   619
            <assert>/out/p[2] = 'Padova, Italia, 0.69, 0.93'</assert>
03afa9383c55 Correct expected test results
Michael Kay <mike@saxonica.com>
parents: 1736
diff changeset
   620
            <assert>/out/p[3] = 'Paris, France, 7.2, 7.6'</assert>
03afa9383c55 Correct expected test results
Michael Kay <mike@saxonica.com>
parents: 1736
diff changeset
   621
         </all-of>
1729
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   622
      </result>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   623
   </test-case>
cf7de651f4ef More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1701
diff changeset
   624
   
1736
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   625
   <test-case name="si-fork-808">
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   626
      <description>Streamable xsl:fork containing xsl:for-each-group (Saxon bug 3375)</description>
1823
19819cd098b5 Add expected results for test si-fork-808
Michael Kay <mike@saxonica.com>
parents: 1822
diff changeset
   627
      <!-- 2018-01-31 - not yet working in Saxon -->
1736
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   628
      <created by="Michael Kay after Martin Honnen" on="2017-08-07"/>
1823
19819cd098b5 Add expected results for test si-fork-808
Michael Kay <mike@saxonica.com>
parents: 1822
diff changeset
   629
      <modified by="Michael Kay after Martin Honnen" on="2018-02-02" change="add expected results, based on non-streamed evaluation"/>
1736
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   630
      <environment>
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   631
         <source role="." file="si-fork-808.xml" streaming="true"/>
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   632
      </environment>
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   633
      <test>
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   634
         <stylesheet file="si-fork-808.xsl"/>
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   635
      </test>
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   636
      <result>
1823
19819cd098b5 Add expected results for test si-fork-808
Michael Kay <mike@saxonica.com>
parents: 1822
diff changeset
   637
         <assert-xml><![CDATA[<root><orderlist type="manual"><item num="(a)"><para>blah blah</para
19819cd098b5 Add expected results for test si-fork-808
Michael Kay <mike@saxonica.com>
parents: 1822
diff changeset
   638
    ><orderlist type="manual"><item num="(i)"><para>blah blah</para
19819cd098b5 Add expected results for test si-fork-808
Michael Kay <mike@saxonica.com>
parents: 1822
diff changeset
   639
    ><orderlist type="manual"/></item></orderlist></item><item num="(b)"><para>blah blah</para
19819cd098b5 Add expected results for test si-fork-808
Michael Kay <mike@saxonica.com>
parents: 1822
diff changeset
   640
    ><orderlist type="manual"/></item><item num="(c)"><para>blah blah</para
19819cd098b5 Add expected results for test si-fork-808
Michael Kay <mike@saxonica.com>
parents: 1822
diff changeset
   641
    ><orderlist type="manual"><item num="(i)"><para>blah blah</para
19819cd098b5 Add expected results for test si-fork-808
Michael Kay <mike@saxonica.com>
parents: 1822
diff changeset
   642
    ><orderlist type="manual"><item num="(1)"><para>blah blah</para
19819cd098b5 Add expected results for test si-fork-808
Michael Kay <mike@saxonica.com>
parents: 1822
diff changeset
   643
    ><orderlist type="manual"/></item><item num="(2)"><para>blah blah</para
19819cd098b5 Add expected results for test si-fork-808
Michael Kay <mike@saxonica.com>
parents: 1822
diff changeset
   644
    ><orderlist type="manual"/></item></orderlist></item><item num="(ii)"><para>blah blah</para
19819cd098b5 Add expected results for test si-fork-808
Michael Kay <mike@saxonica.com>
parents: 1822
diff changeset
   645
    ><orderlist type="manual"/></item><item num="(iii)"><para>blah blah</para><orderlist type="manual"/></item><item num="(iv)"><para>blah blah</para
19819cd098b5 Add expected results for test si-fork-808
Michael Kay <mike@saxonica.com>
parents: 1822
diff changeset
   646
    ><orderlist type="manual"/></item></orderlist></item></orderlist></root>]]></assert-xml>
1736
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   647
      </result>
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   648
   </test-case>
5d237a457819 Tests based on streamed grouping bugs in Saxon
Michael Kay <mike@saxonica.com>
parents: 1729
diff changeset
   649
   
1868
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   650
   <test-case name="si-fork-808-ns">
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   651
      <description>As -808 with streaming disabled, for comparison</description>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   652
     <created by="Michael Kay after Martin Honnen" on="2017-08-07"/>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   653
      <modified by="Michael Kay after Martin Honnen" on="2018-02-02" change="add expected results, based on non-streamed evaluation"/>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   654
      <environment>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   655
         <source role="." file="si-fork-808.xml" streaming="false"/>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   656
      </environment>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   657
      <test>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   658
         <stylesheet file="si-fork-808.xsl"/>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   659
         <param name="STREAMABLE" static="yes" select="false()"/>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   660
      </test>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   661
      <result>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   662
         <assert-xml><![CDATA[<root><orderlist type="manual"><item num="(a)"><para>blah blah</para
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   663
    ><orderlist type="manual"><item num="(i)"><para>blah blah</para
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   664
    ><orderlist type="manual"/></item></orderlist></item><item num="(b)"><para>blah blah</para
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   665
    ><orderlist type="manual"/></item><item num="(c)"><para>blah blah</para
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   666
    ><orderlist type="manual"><item num="(i)"><para>blah blah</para
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   667
    ><orderlist type="manual"><item num="(1)"><para>blah blah</para
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   668
    ><orderlist type="manual"/></item><item num="(2)"><para>blah blah</para
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   669
    ><orderlist type="manual"/></item></orderlist></item><item num="(ii)"><para>blah blah</para
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   670
    ><orderlist type="manual"/></item><item num="(iii)"><para>blah blah</para><orderlist type="manual"/></item><item num="(iv)"><para>blah blah</para
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   671
    ><orderlist type="manual"/></item></orderlist></item></orderlist></root>]]></assert-xml>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   672
      </result>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   673
   </test-case>
3deaeb341727 Correct expected result of test using xsl:try with d-o-e
Michael Kay <mike@saxonica.com>
parents: 1823
diff changeset
   674
   
1758
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   675
   <test-case name="si-fork-809">
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   676
      <description>Streamable xsl:fork containing xsl:for-each-group (Saxon bug 3399)</description>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   677
      <created by="Michael Kay after Martin Honnen" on="2017-08-31"/>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   678
      <environment>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   679
         <source role="." file="si-fork-809.xml" streaming="true"/>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   680
      </environment>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   681
      <test>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   682
         <stylesheet file="si-fork-809.xsl"/>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   683
      </test>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   684
      <result>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   685
         <all-of>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   686
            <assert>count(/out/text()) = 12</assert>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   687
            <assert>/out/text()[1] = "Comedy, New, Paperback, 3"</assert>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   688
            <assert>/out/text()[2] = "Comedy, Old, Paperback, 3"</assert>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   689
            <assert>/out/text()[3] = "Comedy, New, Hardback, 3"</assert>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   690
            <assert>/out/text()[4] = "Comedy, Old, Hardback, 3"</assert>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   691
            <assert>/out/text()[5] = "Drama, New, Paperback, 3"</assert>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   692
         </all-of>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   693
      </result>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   694
   </test-case>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   695
   
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   696
   <test-case name="si-fork-810">
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   697
      <description>Streamable xsl:fork containing xsl:for-each-group (Saxon bug 3375) - simplified version of -808</description>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   698
      <created by="Michael Kay after Martin Honnen" on="2017-08-31"/>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   699
      <environment>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   700
         <source role="." file="si-fork-808.xml" streaming="true"/>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   701
      </environment>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   702
      <test>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   703
         <stylesheet file="si-fork-810.xsl"/>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   704
      </test>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   705
      <result>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   706
         <all-of>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   707
            <assert>/root/orderlist/item[@num="(a)"]/rest/@size = "2"</assert>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   708
            <assert>/root/orderlist/item[@num="(b)"]/rest/@size = "1"</assert>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   709
            <assert>/root/orderlist/item[@num="(c)"]/rest/@size = "7"</assert>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   710
         </all-of>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   711
      </result>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   712
   </test-case>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   713
   
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   714
   <test-case name="si-fork-811">
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   715
      <description>Streamable xsl:fork containing xsl:for-each-group (Saxon bug 3375) - simplified version of -808</description>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   716
      <created by="Michael Kay after Martin Honnen" on="2017-08-31"/>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   717
      <environment>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   718
         <source role="." file="si-fork-808.xml" streaming="true"/>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   719
      </environment>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   720
      <test>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   721
         <stylesheet file="si-fork-811.xsl"/>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   722
      </test>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   723
      <result>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   724
         <all-of>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   725
            <assert>/root/orderlist/item[@num="(a)"]/rest/@size = "1"</assert>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   726
            <assert>/root/orderlist/item[@num="(b)"]/rest/@size = "0"</assert>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   727
            <assert>/root/orderlist/item[@num="(c)"]/rest/@size = "6"</assert>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   728
         </all-of>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   729
      </result>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   730
   </test-case>
6380162df04c More streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1741
diff changeset
   731
   
1801
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   732
   <test-case name="si-fork-812">
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   733
      <description>Streaming with map constructor - Saxon bug 3599 - streaming on</description>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   734
      <created by="Michael Kay after Martin Honnen" on="2018-01-05"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   735
      <environment>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   736
         <source file="../docs/cities.xml" role="." streaming="true"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   737
      </environment>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   738
      <dependencies>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   739
         <spec value="XSLT30+"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   740
         <feature value="streaming"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   741
      </dependencies>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   742
      <test>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   743
         <stylesheet file="si-fork-812.xsl"/>
1817
58a1f613d896 Make test metadata schema-valid
Michael Kay <mike@saxonica.com>
parents: 1801
diff changeset
   744
         <param name="STREAMABLE" static="yes" select="true()"/>
1801
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   745
      </test>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   746
      <result>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   747
         <assert-xml><![CDATA[<out><country name="Italia" pop="6" cities="Milano Venezia"
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   748
            /><country name="France" pop="9" cities="Paris Lyon"
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   749
            /><country name="Deutschland" pop="4" cities="München"
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   750
            /></out>]]></assert-xml>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   751
      </result>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   752
   </test-case>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   753
   
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   754
   <test-case name="si-fork-812ns">
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   755
      <description>Streaming with map constructor - Saxon bug 3599 - streaming off</description>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   756
      <created by="Michael Kay after Martin Honnen" on="2018-01-05"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   757
      <environment>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   758
         <source file="../docs/cities.xml" role="." streaming="true"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   759
      </environment>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   760
      <dependencies>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   761
         <spec value="XSLT30+"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   762
         <feature value="streaming"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   763
      </dependencies>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   764
      <test>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   765
         <stylesheet file="si-fork-812.xsl"/>
1817
58a1f613d896 Make test metadata schema-valid
Michael Kay <mike@saxonica.com>
parents: 1801
diff changeset
   766
         <param name="STREAMABLE" static="yes" select="false()"/>
1801
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   767
      </test>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   768
      <result>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   769
         <assert-xml><![CDATA[<out><country name="Italia" pop="6" cities="Milano Venezia"
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   770
            /><country name="France" pop="9" cities="Paris Lyon"
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   771
            /><country name="Deutschland" pop="4" cities="München"
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   772
            /></out>]]></assert-xml>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   773
      </result>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   774
   </test-case>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   775
   
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   776
   <test-case name="si-fork-813">
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   777
      <description>Streaming with map constructor - Saxon bug 3602 - error case</description>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   778
      <created by="Michael Kay after Martin Honnen" on="2018-01-06"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   779
      <environment>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   780
         <source file="../docs/cities.xml" role="." streaming="true"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   781
      </environment>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   782
      <dependencies>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   783
         <spec value="XSLT30+"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   784
         <feature value="streaming"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   785
      </dependencies>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   786
      <test>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   787
         <stylesheet file="si-fork-813.xsl"/>
1817
58a1f613d896 Make test metadata schema-valid
Michael Kay <mike@saxonica.com>
parents: 1801
diff changeset
   788
         <param name="STREAMABLE" static="yes" select="true()"/>
1801
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   789
      </test>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   790
      <result>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   791
         <error code="XTDE3365"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   792
      </result>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   793
   </test-case>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   794
   
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   795
   <test-case name="si-fork-814">
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   796
      <description>Streaming with map constructor expression - Saxon bug 3602 - error case</description>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   797
      <created by="Michael Kay after Martin Honnen" on="2018-01-06"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   798
      <environment>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   799
         <source file="../docs/cities.xml" role="." streaming="true"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   800
      </environment>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   801
      <dependencies>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   802
         <spec value="XSLT30+"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   803
         <feature value="streaming"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   804
      </dependencies>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   805
      <test>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   806
         <stylesheet file="si-fork-814.xsl"/>
1817
58a1f613d896 Make test metadata schema-valid
Michael Kay <mike@saxonica.com>
parents: 1801
diff changeset
   807
         <param name="STREAMABLE" static="yes" select="true()"/>
1801
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   808
      </test>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   809
      <result>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   810
         <error code="XTDE3365"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   811
      </result>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   812
   </test-case>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   813
   
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   814
   <test-case name="si-fork-815">
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   815
      <description>Streaming with xsl:fork - json output method. Saxon bug 3601.</description>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   816
      <created by="Michael Kay after Martin Honnen" on="2018-01-06"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   817
      <environment>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   818
         <source file="../docs/transactions.xml" role="." streaming="true"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   819
      </environment>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   820
      <dependencies>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   821
         <spec value="XSLT30+"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   822
         <feature value="streaming"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   823
         <feature value="serialization"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   824
      </dependencies>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   825
      <test>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   826
         <stylesheet file="si-fork-815.xsl"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   827
         <output serialize="yes"/>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   828
      </test>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   829
      <result>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   830
         <assert-serialization>[[13.24,8.12],[-15],[6],[0.5,2.33,4.44],[-5],[8.99],[16],[-2.33,5.6,4.32],[6.78,12.2,-248.05],[12,13.99],[14.2]]</assert-serialization>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   831
      </result>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   832
   </test-case>
6c371569326b New streamed grouping tests
Michael Kay <mike@saxonica.com>
parents: 1758
diff changeset
   833
   
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   834
   <test-case name="si-fork-901">
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   835
      <description>Non-streamable xsl:fork - returns streamed nodes</description>
519
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
   836
      <keywords>multiple-xsl-sequence-children AxisStep striding XTSE3430 illegally-returning-streamed-nodes</keywords>
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   837
      <created by="Michael Kay" on="2014-01-13"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   838
      <test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   839
         <stylesheet file="si-fork-901.xsl"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   840
         <initial-template name="f-901"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   841
      </test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   842
      <result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   843
         <error code="XTSE3430"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   844
      </result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   845
   </test-case>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   846
   
400
a7206e9e0749 Fix catalog validity issues
Michael Kay <mike@saxonica.com>
parents: 399
diff changeset
   847
   <test-case name="si-fork-902">
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   848
      <description>Non-streamable xsl:fork - one prong is non-streamable</description>
519
d0dc387e89b6 Adding keywords for si-fork-test-set
abraaksm
parents: 400
diff changeset
   849
      <keywords>illegally-returning-streamed-nodes multiple-xsl-sequence-children striding AxisStep XTSE3430</keywords>
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   850
      <created by="Michael Kay" on="2014-01-13"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   851
      <test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   852
         <stylesheet file="si-fork-902.xsl"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   853
         <initial-template name="f-902"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   854
      </test>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   855
      <result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   856
         <error code="XTSE3430"/>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   857
      </result>
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   858
   </test-case>
1271
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   859
   
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   860
   <test-case name="si-fork-951">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   861
      <description>Non-streamable xsl:fork/xsl:for-each-group: current-group() used repeatedly</description>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   862
      <created by="Michael Kay" on="2016-02-24"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   863
      <test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   864
         <stylesheet file="si-fork-951.xsl"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   865
      </test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   866
      <result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   867
         <error code="XTSE3430"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   868
      </result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   869
   </test-case>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   870
   
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   871
   <test-case name="si-fork-952">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   872
      <description>Non-streamable xsl:fork/xsl:for-each-group: 2 down-selections from current-group()</description>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   873
      <created by="Michael Kay" on="2016-02-24"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   874
      <test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   875
         <stylesheet file="si-fork-952.xsl"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   876
      </test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   877
      <result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   878
         <error code="XTSE3430"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   879
      </result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   880
   </test-case>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   881
   
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   882
   <test-case name="si-fork-953">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   883
      <description>Non-streamable xsl:fork/xsl:for-each-group: sorted groups (should this be an error?)</description>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   884
      <created by="Michael Kay" on="2016-02-24"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   885
      <test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   886
         <stylesheet file="si-fork-953.xsl"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   887
      </test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   888
      <result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   889
         <error code="XTSE3430"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   890
      </result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   891
   </test-case>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   892
   
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   893
   <test-case name="si-fork-954">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   894
      <description>Non-streamable xsl:fork/xsl:for-each-group: Down-selection from current-group() and from "."</description>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   895
      <created by="Michael Kay" on="2016-02-24"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   896
      <test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   897
         <stylesheet file="si-fork-954.xsl"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   898
      </test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   899
      <result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   900
         <error code="XTSE3430"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   901
      </result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   902
   </test-case>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   903
   
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   904
   <test-case name="si-fork-955">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   905
      <description>Non-streamable xsl:fork/xsl:for-each-group: Population is crawling</description>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   906
      <created by="Michael Kay" on="2016-02-24"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   907
      <test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   908
         <stylesheet file="si-fork-955.xsl"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   909
      </test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   910
      <result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   911
         <error code="XTSE3430"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   912
      </result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   913
   </test-case>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   914
   
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   915
   <test-case name="si-fork-956">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   916
      <description>Non-streamable xsl:fork/xsl:for-each-group: current-group() appears in higher-order operand</description>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   917
      <created by="Michael Kay" on="2016-02-24"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   918
      <test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   919
         <stylesheet file="si-fork-956.xsl"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   920
      </test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   921
      <result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   922
         <error code="XTSE3430"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   923
      </result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   924
   </test-case>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   925
   
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   926
   <test-case name="si-fork-957">
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   927
      <description>Non-streamable xsl:fork/xsl:for-each-group: group-by expression not motionless</description>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   928
      <created by="Michael Kay" on="2016-02-24"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   929
      <test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   930
         <stylesheet file="si-fork-957.xsl"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   931
      </test>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   932
      <result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   933
         <error code="XTSE3430"/>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   934
      </result>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   935
   </test-case>
32155e761221 More xsl:fork/xsl:for-each-group tests, especially error cases
Michael Kay <mike@saxonica.com>
parents: 1270
diff changeset
   936
   
399
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   937
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   938
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   939
12f6867c34c1 Streaming tests for xsl:fork
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   940
</test-set>