tests/insn/merge/_merge-test-set.xml
author Michael Kay <mike@saxonica.com>
Sun, 16 Aug 2015 23:59:23 +0100
changeset 1044 585bbb774c33
parent 1032 c4562c4c8ea0
child 1086 89d8b88b26d4
permissions -rw-r--r--
Add required dependency
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     2
<test-set xmlns:xs="http://www.w3.org/2001/XMLSchema"
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     3
          xmlns="http://www.w3.org/2012/10/xslt-test-catalog"
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     4
          name="merge">
9
1107f42cfd5d Tidy up strip-type-annotations tests (whitespace problems)
Michael Kay <mike@saxonica.com>
parents: 6
diff changeset
     5
   
1107f42cfd5d Tidy up strip-type-annotations tests (whitespace problems)
Michael Kay <mike@saxonica.com>
parents: 6
diff changeset
     6
   <description>Tests the xsl:merge instruction</description>
1107f42cfd5d Tidy up strip-type-annotations tests (whitespace problems)
Michael Kay <mike@saxonica.com>
parents: 6
diff changeset
     7
   
1107f42cfd5d Tidy up strip-type-annotations tests (whitespace problems)
Michael Kay <mike@saxonica.com>
parents: 6
diff changeset
     8
   <environment name="merge001">
1107f42cfd5d Tidy up strip-type-annotations tests (whitespace problems)
Michael Kay <mike@saxonica.com>
parents: 6
diff changeset
     9
      <source role="." file="merge001.xml"/>
1107f42cfd5d Tidy up strip-type-annotations tests (whitespace problems)
Michael Kay <mike@saxonica.com>
parents: 6
diff changeset
    10
      <!-- TODO: uses a collection, need to catalog its contents -->
1107f42cfd5d Tidy up strip-type-annotations tests (whitespace problems)
Michael Kay <mike@saxonica.com>
parents: 6
diff changeset
    11
   </environment>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    12
   <environment name="merge002">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    13
      <source role="." file="merge001.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    14
      <source file="log-file-1.xml" uri="log-file-1.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    15
      <source file="log-file-2.xml" uri="log-file-2.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    16
   </environment>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    17
   <environment name="merge004">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    18
      <source role="." file="merge004.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    19
      <source file="school2.xml" uri="school2.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    20
   </environment>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    21
   <environment name="merge008">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    22
      <source role="." file="merge008.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    23
      <source file="america.xml" uri="america.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    24
   </environment>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    25
   <environment name="merge010">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    26
      <source role="." file="merge010.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    27
   </environment>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    28
   <environment name="merge011">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    29
      <source role=".">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    30
         <content><![CDATA[<doc/>]]></content>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    31
      </source>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    32
   </environment>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    33
   <environment name="merge015">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    34
      <source role="." file="merge015.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    35
   </environment>
419
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
    36
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
    37
   <environment name="merge049">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
    38
      <schema role="stylesheet-import"
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
    39
              file="books.xsd"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
    40
   </environment>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
    41
   
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    42
   <environment name="merge917err">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    43
      <source role="." file="merge917err.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    44
   </environment>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    45
   
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    46
   <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    47
      <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    48
   </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    49
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    50
   <test-case name="merge-001">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    51
      <description>xsl:merge test on a homogeneous collection of XML log files.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    52
      <created by="O'Neil Delpratt" on="2012-11-07"/>
67
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    53
      <environment>
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    54
         <collection uri="log-files">
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    55
            <source file="log-files/log-file1.xml" uri="log-files/log-file1.xml"/>
69
e1ca2688c741 Make all test-set catalog files valid against the catalog schema
Michael Kay <mike@saxonica.com>
parents: 67
diff changeset
    56
            <source file="log-files/log-file2.xml" uri="log-files/log-file2.xml"/>
67
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    57
         </collection>
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    58
      </environment>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    59
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    60
         <stylesheet file="merge-001.xsl"/>
67
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    61
         <initial-template name="main"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    62
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    63
      <result>
67
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    64
         <assert-xml><![CDATA[<events><event timestamp="2009-08-20T12:01:01Z">Transaction T1234 started</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    65
            ><event timestamp="2009-08-20T12:01:05Z">Transaction T1236 started</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    66
            ><event timestamp="2009-08-20T12:01:08Z">Transaction T1235 started</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    67
            ><event timestamp="2009-08-20T12:01:09Z">Transaction T1236 ended</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    68
            ><event timestamp="2009-08-20T12:01:11Z">Transaction T1237 started</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    69
            ><event timestamp="2009-08-20T12:01:12Z">Transaction T1235 ended</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    70
            ><event timestamp="2009-08-20T12:01:15Z">Transaction T1234 ended</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
    71
            ><event timestamp="2009-08-20T12:01:17Z">Transaction T1237 ended</event></events>]]></assert-xml>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    72
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    73
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    74
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    75
   <test-case name="merge-002">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    76
      <description>xsl:merge test on two heterogeneous files.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    77
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    78
      <environment ref="merge002"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    79
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    80
         <stylesheet file="merge-002.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    81
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    82
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    83
         <assert-xml file="merge-002.out"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    84
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    85
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    86
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    87
   <test-case name="merge-003">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    88
      <description>xsl:merge test on two heterogeneous files. Testing merge-key, where order attribute requires run-time evaluation</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    89
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    90
      <environment ref="merge002"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    91
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    92
         <stylesheet file="merge-003.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    93
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    94
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    95
         <assert-xml file="merge-003.out"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    96
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    97
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    98
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    99
   <test-case name="merge-004">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   100
      <description>xsl:merge test on two heterogeneous files- output using the current-grouping-key</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   101
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   102
      <environment ref="merge002"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   103
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   104
         <stylesheet file="merge-004.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   105
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   106
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   107
         <assert-xml><![CDATA[<events><group>2009-08-20T12:01:01Z</group><group>2009-08-20T12:01:08Z</group><group>2009-08-20T12:01:12Z</group><group>2009-08-20T12:01:15Z</group><group>2009-08-20T12:03:00Z</group></events>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   108
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   109
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   110
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   111
   <test-case name="merge-005">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   112
      <description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   113
         xsl:merge: xsl:merge-source that uses a path expression that selects more than one node in an attribute value template 
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   114
         (test with context)
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   115
      </description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   116
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   117
      <environment>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   118
         <source role="." file="merge001.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   119
         <source file="log-file-3.xml" uri="log-file-2.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   120
      </environment>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   121
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   122
         <stylesheet file="merge-005.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   123
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   124
      <result>
67
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   125
         <assert-xml><![CDATA[<results><result><event timestamp="2009-08-20T12:01:01Z">Transaction T1234 started</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   126
            ><event timestamp="2009-08-20T12:01:08Z">Transaction T1235 started</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   127
            ><event timestamp="2009-08-20T12:01:12Z">Transaction T1235 ended</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   128
            ><event timestamp="2009-08-20T12:01:15Z">Transaction T1234 ended</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   129
            ></result><result><event timestamp="2009-08-20T12:01:15Z">Transaction T1234 ended</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   130
            ><event timestamp="2009-08-20T12:01:12Z">Transaction T1235 ended</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   131
            ><event timestamp="2009-08-20T12:01:08Z">Transaction T1235 started</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   132
            ><event timestamp="2009-08-20T12:01:01Z">Transaction T1234 started</event
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   133
            ></result></results>]]></assert-xml>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   134
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   135
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   136
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   137
   <test-case name="merge-006">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   138
      <description>xsl:merge: xsl:merge-source that uses a path expression that selects more than one node in an attribute value template</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   139
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   140
      <environment ref="merge001"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   141
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   142
         <stylesheet file="merge-006.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   143
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   144
      <result>
67
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   145
         <assert-xml><![CDATA[<results><country>Argentina</country><country>Brazil</country><country>Cananda</country><country>Mexico</country><country>USA</country></results>]]></assert-xml>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   146
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   147
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   148
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   149
   <test-case name="merge-007">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   150
      <description>xsl:merge test with more than one xsl:merge-action child elements</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   151
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   152
      <environment ref="merge001"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   153
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   154
         <stylesheet file="merge-007.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   155
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   156
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   157
         <error code="XTSE0010"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   158
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   159
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   160
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   161
   <test-case name="merge-008">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   162
      <description>Test xsl:merge-key with different languages.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   163
      <created by="O'Neil Delpratt" on="2012-11-07"/>
349
bc93c1be3460 fix error code in merge-008, merge-011, merge-020 from XTSE2210 to XTDE2210, fix error code in merge-010
Vitaliy Yudenkov <vyudenkov@gmail.com>
parents: 212
diff changeset
   164
      <modified by="Abel Braaksma" on="2013-12-09" change="XTDE2210 instead of XTSE2210"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   165
      <environment ref="merge001"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   166
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   167
         <stylesheet file="merge-008.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   168
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   169
      <result>
349
bc93c1be3460 fix error code in merge-008, merge-011, merge-020 from XTSE2210 to XTDE2210, fix error code in merge-010
Vitaliy Yudenkov <vyudenkov@gmail.com>
parents: 212
diff changeset
   170
         <error code="XTDE2210"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   171
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   172
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   173
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   174
   <test-case name="merge-009">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   175
      <description>Different count of xsl:merge-key grandchildren of a xsl:merge-source to another xsl:merge-source.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   176
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   177
      <environment ref="merge001"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   178
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   179
         <stylesheet file="merge-009.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   180
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   181
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   182
         <error code="XTSE2200"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   183
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   184
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   185
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   186
   <test-case name="merge-010">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   187
      <description>Test xsl:merge-key with the disallowed stable attribute.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   188
      <created by="O'Neil Delpratt" on="2012-11-07"/>
349
bc93c1be3460 fix error code in merge-008, merge-011, merge-020 from XTSE2210 to XTDE2210, fix error code in merge-010
Vitaliy Yudenkov <vyudenkov@gmail.com>
parents: 212
diff changeset
   189
      <modified by="Abel Braaksma" on="2013-12-09" change="XTSE0090 (not allowed attribute for XSLT instruction) instead of XTSE0010"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   190
      <environment ref="merge001"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   191
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   192
         <stylesheet file="merge-010.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   193
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   194
      <result>
349
bc93c1be3460 fix error code in merge-008, merge-011, merge-020 from XTSE2210 to XTDE2210, fix error code in merge-010
Vitaliy Yudenkov <vyudenkov@gmail.com>
parents: 212
diff changeset
   195
         <error code="XTSE0090"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   196
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   197
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   198
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   199
   <test-case name="merge-011">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   200
      <description>Testing disallowed merge-key, where data-type attribute requires run-time evaluation</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   201
      <created by="O'Neil Delpratt" on="2012-11-07"/>
349
bc93c1be3460 fix error code in merge-008, merge-011, merge-020 from XTSE2210 to XTDE2210, fix error code in merge-010
Vitaliy Yudenkov <vyudenkov@gmail.com>
parents: 212
diff changeset
   202
      <modified by="Abel Braaksma" on="2013-12-09" change="XTDE2210 instead of XTSE2210"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   203
      <environment ref="merge001"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   204
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   205
         <stylesheet file="merge-011.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   206
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   207
      <result>
349
bc93c1be3460 fix error code in merge-008, merge-011, merge-020 from XTSE2210 to XTDE2210, fix error code in merge-010
Vitaliy Yudenkov <vyudenkov@gmail.com>
parents: 212
diff changeset
   208
         <error code="XTDE2210"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   209
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   210
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   211
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   212
   <test-case name="merge-012">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   213
      <description>xsl:merge test with multiple merge keys</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   214
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   215
      <environment ref="merge004"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   216
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   217
         <stylesheet file="merge-012.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   218
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   219
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   220
         <assert-xml file="merge-012.out"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   221
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   222
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   223
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   224
   <test-case name="merge-013">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   225
      <description>xsl:merge test - selects two anchor items in the same document</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   226
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   227
      <environment ref="merge004"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   228
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   229
         <stylesheet file="merge-013.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   230
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   231
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   232
         <assert-xml file="merge-013.out"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   233
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   234
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   235
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   236
   <test-case name="merge-014">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   237
      <description>xsl:merge test - selects two anchor items from two document</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   238
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   239
      <environment ref="merge004"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   240
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   241
         <stylesheet file="merge-014.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   242
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   243
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   244
         <assert-xml file="merge-014.out"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   245
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   246
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   247
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   248
   <test-case name="merge-015">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   249
      <description>xsl:merge test - selects three anchor items from two document</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   250
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   251
      <environment ref="merge004"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   252
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   253
         <stylesheet file="merge-015.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   254
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   255
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   256
         <assert-xml file="merge-015.out"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   257
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   258
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   259
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   260
   <test-case name="merge-016">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   261
      <description>xsl:merge test of merge-input with empty sequence at run-time</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   262
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   263
      <environment ref="merge004"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   264
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   265
         <stylesheet file="merge-016.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   266
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   267
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   268
         <assert-xml><![CDATA[<results/>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   269
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   270
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   271
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   272
   <test-case name="merge-017">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   273
      <description>The @select attribute of xsl:merge-key should be a singleton, but evaluated to be a sequence of items</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   274
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   275
      <environment ref="merge004"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   276
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   277
         <stylesheet file="merge-017.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   278
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   279
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   280
         <error code="XTTE1020"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   281
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   282
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   283
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   284
   <test-case name="merge-018">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   285
      <description>Test xsl:merge - perform sort with a xsl:merge-input</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   286
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   287
      <environment ref="merge008"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   288
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   289
         <stylesheet file="merge-018.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   290
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   291
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   292
         <assert-xml file="merge-018.out"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   293
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   294
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   295
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   296
   <test-case name="merge-019">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   297
      <description>Sequence of merge-input is text, but the data-type attribute of xsl:merge-key is number</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   298
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   299
      <environment ref="merge008"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   300
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   301
         <stylesheet file="merge-019.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   302
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   303
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   304
         <assert-xml><![CDATA[<results><country>Holland</country><country>UK</country><country>Italy</country><country>Germany</country><country>France</country></results>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   305
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   306
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   307
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   308
   <test-case name="merge-020">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   309
      <description>Test xsl:merge-key with different languages.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   310
      <created by="O'Neil Delpratt" on="2012-11-07"/>
349
bc93c1be3460 fix error code in merge-008, merge-011, merge-020 from XTSE2210 to XTDE2210, fix error code in merge-010
Vitaliy Yudenkov <vyudenkov@gmail.com>
parents: 212
diff changeset
   311
      <modified by="Abel Braaksma" on="2013-12-09" change="XTDE2210 instead of XTSE2210, corrected invalid sequence type to function(*)."/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   312
      <environment ref="merge008"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   313
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   314
         <stylesheet file="merge-020.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   315
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   316
      <result>
349
bc93c1be3460 fix error code in merge-008, merge-011, merge-020 from XTSE2210 to XTDE2210, fix error code in merge-010
Vitaliy Yudenkov <vyudenkov@gmail.com>
parents: 212
diff changeset
   317
         <error code="XTDE2210"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   318
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   319
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   320
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   321
   <test-case name="merge-021">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   322
      <description>Test xsl:merge-input with incorrect order.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   323
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   324
      <environment ref="merge008"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   325
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   326
         <stylesheet file="merge-021.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   327
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   328
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   329
         <error code="XTDE2220"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   330
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   331
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   332
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   333
   <test-case name="merge-022">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   334
      <description>Test xsl:merge-key context: visibility of variable defined in xsl:merge-input</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   335
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   336
      <environment ref="merge008"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   337
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   338
         <stylesheet file="merge-022.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   339
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   340
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   341
         <error code="XPST0008"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   342
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   343
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   344
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   345
   <test-case name="merge-023">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   346
      <description>xsl:merge-keys in corresponding merge-inputs not comparable</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   347
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   348
      <environment ref="merge008"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   349
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   350
         <stylesheet file="merge-023.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   351
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   352
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   353
         <error code="XTTE2230"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   354
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   355
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   356
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   357
   <test-case name="merge-024">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   358
      <description>xsl:merge test of intersection</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   359
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   360
      <environment ref="merge010"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   361
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   362
         <stylesheet file="merge-024.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   363
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   364
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   365
         <assert-xml><![CDATA[<results><out>20</out><out>21</out><out>22</out><out>23</out><out>24</out><out>25</out><out>26</out><out>27</out><out>28</out><out>29</out><out>30</out></results>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   366
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   367
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   368
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   369
   <test-case name="merge-025">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   370
      <description>xsl:merge test of union</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   371
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   372
      <environment ref="merge011"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   373
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   374
         <stylesheet file="merge-025.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   375
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   376
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   377
         <assert-xml file="merge-025.out"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   378
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   379
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   380
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   381
   <test-case name="merge-026">
212
186a9ebc7d58 Cosmetic change only
Michael Kay <mike@saxonica.com>
parents: 69
diff changeset
   382
      <description>xsl:merge-source test with no xsl:merge-key child elements</description>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   383
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   384
      <environment ref="merge011"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   385
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   386
         <stylesheet file="merge-026.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   387
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   388
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   389
         <error code="XTSE0010"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   390
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   391
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   392
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   393
   <test-case name="merge-027">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   394
      <description>xsl:merge-input test with select attribute and sequence constructor content</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   395
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   396
      <environment ref="merge011"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   397
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   398
         <stylesheet file="merge-027.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   399
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   400
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   401
         <error code="XTSE0010"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   402
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   403
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   404
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   405
   <test-case name="merge-028">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   406
      <description>xsl:merge: xsl:merge-source that uses a path expression that selects more than one node in an attribute value template</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   407
      <created by="O'Neil Delpratt" on="2012-11-07"/>
6
554a66ef9140 Achieve catalog schema validity
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
   408
      <environment>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   409
         <source role="." file="merge015.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   410
         <source file="log-file-3.xml" uri="log-file-3.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   411
      </environment>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   412
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   413
         <stylesheet file="merge-028.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   414
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   415
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   416
         <assert-xml file="merge-028.out"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   417
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   418
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   419
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   420
   <test-case name="merge-029">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   421
      <description>xsl:merge: live use case, see http://stackoverflow.com/questions/10271639/xslt-merge-challenge</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   422
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   423
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   424
         <stylesheet file="merge-029.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   425
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   426
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   427
      <result>
67
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   428
         <assert-xml><![CDATA[<Customer><CustId>1</CustId><CustName>Acme</CustName
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   429
            ><Addresses><Address status="NoChange"><AddressesId>1</AddressesId><Street>123 Main</Street></Address
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   430
            ><Address status="Updated"><AddressesId>2</AddressesId><Street>999 Updated St.</Street></Address
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   431
            ><Address status="New"><AddressesId>3</AddressesId><Street>3999 New St.</Street></Address
89bf6f57c941 Clean up "merge" test set
Michael Kay <mike@saxonica.com>
parents: 9
diff changeset
   432
            ><Address status="Deleted"><AddressesId>4</AddressesId><Street>888 Goner St.</Street></Address></Addresses></Customer>]]></assert-xml>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   433
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   434
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   435
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   436
   <test-case name="merge-030">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   437
      <description>xsl:merge test with zero xsl:merge-source child elements</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   438
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   439
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   440
         <stylesheet file="merge-030.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   441
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   442
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   443
         <error code="XTSE0010"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   444
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   445
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   446
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   447
   <test-case name="merge-031">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   448
      <description>xsl:merge-source test with zero xsl:merge-input child elements</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   449
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   450
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   451
         <stylesheet file="merge-031.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   452
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   453
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   454
         <error code="XTSE0010"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   455
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   456
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   457
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   458
   <test-case name="merge-032">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   459
      <description>xsl:merge-key test with select attribute has non-empty content</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   460
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   461
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   462
         <stylesheet file="merge-032.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   463
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   464
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   465
         <error code="XTSE2190"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   466
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   467
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   468
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   469
   <test-case name="merge-033">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   470
      <description>xsl:merge-source is in the wrong place</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   471
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   472
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   473
         <stylesheet file="merge-033.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   474
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   475
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   476
         <error code="XTSE0010"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   477
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   478
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   479
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   480
   <test-case name="merge-034">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   481
      <description>xsl:merge-source with more than one xsl:merge-input child element - error</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   482
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   483
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   484
         <stylesheet file="merge-034.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   485
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   486
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   487
         <error code="XTSE0010"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   488
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   489
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   490
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   491
   <test-case name="merge-035">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   492
      <description>xsl:merge with a disallowed child element</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   493
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   494
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   495
         <stylesheet file="merge-035.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   496
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   497
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   498
         <error code="XTSE0010"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   499
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   500
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   501
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   502
   <test-case name="merge-036">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   503
      <description>xsl:merge-source with a disallowed child element</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   504
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   505
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   506
         <stylesheet file="merge-036.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   507
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   508
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   509
         <error code="XTSE0010"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   510
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   511
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   512
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   513
   <test-case name="merge-037">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   514
      <description>xsl:merge-input with xsl:merge-key not at as last child node</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   515
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   516
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   517
         <stylesheet file="merge-037.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   518
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   519
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   520
         <error code="XTSE0010"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   521
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   522
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   523
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   524
   <test-case name="merge-038">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   525
      <description>Testing a sequence of more than one item is not allowed as the @select attr of merge-key</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   526
      <created by="O'Neil Delpratt" on="2012-11-07"/>
705
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   527
      <environment ref="merge917err"/>   
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   528
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   529
         <stylesheet file="merge-038.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   530
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   531
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   532
         <error code="XTTE1020"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   533
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   534
   </test-case>
419
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   535
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   536
   <test-case name="merge-039">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   537
      <description>xsl:merge test on a homogeneous collection of XML log files, using for-each-stream</description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   538
      <created by="Michael Kay" on="2014-04-10"/>
705
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   539
      <modified by="Michael Kay" on="2014-09-30" change="add streaming dependency"/>
419
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   540
      <environment>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   541
         <collection uri="log-files">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   542
            <source file="log-files/log-file1.xml" uri="log-files/log-file1.xml"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   543
            <source file="log-files/log-file2.xml" uri="log-files/log-file2.xml"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   544
         </collection>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   545
      </environment>
705
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   546
      <dependencies>
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   547
         <feature value="streaming"/>
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   548
      </dependencies>
419
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   549
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   550
         <stylesheet file="merge-039.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   551
         <initial-template name="main"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   552
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   553
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   554
         <assert-xml><![CDATA[<events><event timestamp="2009-08-20T12:01:01Z">Transaction T1234 started</event
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   555
            ><event timestamp="2009-08-20T12:01:05Z">Transaction T1236 started</event
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   556
            ><event timestamp="2009-08-20T12:01:08Z">Transaction T1235 started</event
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   557
            ><event timestamp="2009-08-20T12:01:09Z">Transaction T1236 ended</event
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   558
            ><event timestamp="2009-08-20T12:01:11Z">Transaction T1237 started</event
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   559
            ><event timestamp="2009-08-20T12:01:12Z">Transaction T1235 ended</event
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   560
            ><event timestamp="2009-08-20T12:01:15Z">Transaction T1234 ended</event
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   561
            ><event timestamp="2009-08-20T12:01:17Z">Transaction T1237 ended</event></events>]]></assert-xml>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   562
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   563
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   564
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   565
   <test-case name="merge-040">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   566
      <description>xsl:merge test on two heterogeneous files, using for-each-stream</description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   567
      <created by="Michael Kay" on="2014-04-10"/>
705
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   568
      <modified by="Michael Kay" on="2014-09-30" change="add streaming dependency"/>
419
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   569
      <environment ref="merge002"/>
705
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   570
      <dependencies>
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   571
         <feature value="streaming"/>
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   572
      </dependencies>
419
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   573
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   574
         <stylesheet file="merge-040.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   575
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   576
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   577
         <assert-xml file="merge-002.out"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   578
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   579
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   580
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   581
   <test-case name="merge-041">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   582
      <description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   583
      	xsl:merge test on two heterogeneous files. 
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   584
      	Testing merge-key, where order attribute requires run-time evaluation.
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   585
      	Mixing different ways of selecting different sources.
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   586
      	Also tests use of xml:base affecting URI resolution.
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   587
      </description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   588
      <created by="Michael Kay" on="2014-04-10"/>
705
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   589
      <modified by="Michael Kay" on="2014-09-30" change="add streaming dependency"/>
419
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   590
      <environment ref="merge002"/>
705
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   591
      <dependencies>
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   592
         <feature value="streaming"/>
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   593
      </dependencies>
419
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   594
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   595
         <stylesheet file="merge-041.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   596
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   597
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   598
         <assert-xml file="merge-003.out"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   599
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   600
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   601
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   602
   <test-case name="merge-042">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   603
      <description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   604
      	Error - can't specify both for-each-item and for-each-stream
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   605
      </description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   606
      <created by="Michael Kay" on="2014-04-10"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   607
      <environment ref="merge002"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   608
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   609
         <stylesheet file="merge-042.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   610
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   611
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   612
         <error code="XTSE0020"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   613
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   614
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   615
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   616
   <test-case name="merge-043">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   617
      <description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   618
      	Error - for-each-stream expected type is string
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   619
      </description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   620
      <created by="Michael Kay" on="2014-04-10"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   621
      <environment ref="merge002"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   622
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   623
         <stylesheet file="merge-043.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   624
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   625
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   626
         <error code="XPTY0004"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   627
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   628
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   629
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   630
   <test-case name="merge-044">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   631
      <description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   632
         xsl:merge: current-merge-group with source name argument
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   633
      </description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   634
      <created by="Michael Kay" on="2014-04-10"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   635
      <environment ref="merge002"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   636
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   637
         <stylesheet file="merge-044.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   638
         <initial-template name="main"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   639
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   640
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   641
         <all-of>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   642
           <assert>/events/group[1][@at="2009-08-20T12:01:01Z"]/one/event = "Transaction T1234 started"</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   643
           <assert>/events/group[1][@at="2009-08-20T12:01:01Z"]/two/record/message = "Temperature 15.4C"</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   644
           <assert>/events/group[2][@at="2009-08-20T12:01:08Z"]/one/event = "Transaction T1235 started"</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   645
           <assert>/events/group[2][@at="2009-08-20T12:01:08Z"]/two = ""</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   646
           <assert>/events/group[3][@at="2009-08-20T12:01:12Z"]/one/event = "Transaction T1235 ended"</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   647
           <assert>/events/group[3][@at="2009-08-20T12:01:12Z"]/two = ""</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   648
           <assert>/events/group[4][@at="2009-08-20T12:01:15Z"]/one/event = "Transaction T1234 ended"</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   649
           <assert>/events/group[4][@at="2009-08-20T12:01:15Z"]/two = ""</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   650
           <assert>/events/group[5][@at="2009-08-20T12:03:00Z"]/one = ""</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   651
           <assert>/events/group[5][@at="2009-08-20T12:03:00Z"]/two/record/message = "Temperature 18.2C"</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   652
         </all-of>  
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   653
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   654
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   655
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   656
   <test-case name="merge-045">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   657
      <description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   658
         xsl:merge: current-merge-group with source name argument; unknown source name
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   659
      </description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   660
      <created by="Michael Kay" on="2014-04-10"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   661
      <environment ref="merge002"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   662
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   663
         <stylesheet file="merge-045.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   664
         <initial-template name="main"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   665
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   666
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   667
         <error code="XTDE3490"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   668
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   669
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   670
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   671
   <test-case name="merge-046">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   672
      <description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   673
         xsl:merge: current-merge-group with source name argument; invalid source name
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   674
      </description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   675
      <created by="Michael Kay" on="2014-04-10"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   676
      <environment ref="merge002"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   677
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   678
         <stylesheet file="merge-046.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   679
         <initial-template name="main"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   680
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   681
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   682
         <error code="XTSE0020"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   683
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   684
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   685
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   686
   <test-case name="merge-047">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   687
      <description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   688
         xsl:merge: dynamic argument to current-merge-group()
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   689
      </description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   690
      <created by="Michael Kay" on="2014-04-10"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   691
      <environment ref="merge002"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   692
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   693
         <stylesheet file="merge-047.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   694
         <initial-template name="main"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   695
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   696
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   697
         <all-of>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   698
           <assert>/events/group[1][@name="g1"][@at="2009-08-20T12:01:01Z"]/record/message = "Temperature 15.4C"</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   699
           <assert>/events/group[2][@name="g0"][@at="2009-08-20T12:01:08Z"]/event = "Transaction T1235 started"</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   700
           <assert>/events/group[3][@name="g1"][@at="2009-08-20T12:01:12Z"] = ""</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   701
           <assert>/events/group[4][@name="g0"][@at="2009-08-20T12:01:15Z"]/event = "Transaction T1234 ended"</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   702
           <assert>/events/group[5][@name="g1"][@at="2009-08-20T12:03:00Z"]/record/message = "Temperature 18.2C"</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   703
         </all-of>  
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   704
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   705
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   706
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   707
   <test-case name="merge-048">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   708
      <description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   709
         xsl:merge: dynamic argument to current-merge-group(); unknown source name
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   710
      </description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   711
      <created by="Michael Kay" on="2014-04-10"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   712
      <environment ref="merge002"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   713
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   714
         <stylesheet file="merge-048.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   715
         <initial-template name="main"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   716
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   717
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   718
         <error code="XTDE3490"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   719
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   720
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   721
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   722
   <test-case name="merge-049">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   723
      <description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   724
         xsl:merge: merge two documents with validation=strict
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   725
      </description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   726
      <created by="Michael Kay" on="2014-04-10"/>
1011
9f4cd1a0f8c2 Update test merge-049 following spec changes
Michael Kay <mike@saxonica.com>
parents: 953
diff changeset
   727
      <modified by="Michael Kay" on="2015-07-08" change="Bug 28762 means merging on position() no longer makes sense"/>
419
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   728
      <environment ref="merge049"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   729
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   730
         <stylesheet file="merge-049.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   731
         <initial-template name="main"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   732
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   733
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   734
         <all-of>
1011
9f4cd1a0f8c2 Update test merge-049 following spec changes
Michael Kay <mike@saxonica.com>
parents: 953
diff changeset
   735
           <assert>count(/books/ok) = 3</assert>
419
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   736
           <assert>count(/books/bad) = 0</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   737
         </all-of>  
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   738
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   739
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   740
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   741
   <test-case name="merge-050">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   742
      <description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   743
         xsl:merge: merge two documents with validation failure
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   744
      </description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   745
      <created by="Michael Kay" on="2014-04-10"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   746
      <environment ref="merge049"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   747
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   748
         <stylesheet file="merge-050.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   749
         <initial-template name="main"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   750
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   751
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   752
         <error code="XTTE1510"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   753
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   754
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   755
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   756
   <test-case name="merge-051">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   757
      <description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   758
         xsl:merge: merge two documents with validation by type
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   759
      </description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   760
      <created by="Michael Kay" on="2014-04-10"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   761
      <environment ref="merge049"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   762
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   763
         <stylesheet file="merge-051.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   764
         <initial-template name="main"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   765
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   766
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   767
         <all-of>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   768
           <assert>count(/books/ok) = 4</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   769
           <assert>count(/books/bad) = 0</assert>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   770
         </all-of>  
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   771
      </result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   772
   </test-case>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   773
   
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   774
   <test-case name="merge-052">
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   775
      <description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   776
         xsl:merge: merge two documents with validation by type, failure
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   777
      </description>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   778
      <created by="Michael Kay" on="2014-04-10"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   779
      <environment ref="merge049"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   780
      <test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   781
         <stylesheet file="merge-052.xsl"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   782
         <initial-template name="main"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   783
      </test>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   784
      <result>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   785
         <error code="XTTE1540"/>
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   786
      </result>
426
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   787
   </test-case>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   788
   
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   789
   <test-case name="merge-053">
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   790
      <description>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   791
         xsl:merge: merge two documents with validation; both validation and type specified, error.
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   792
      </description>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   793
      <created by="Michael Kay" on="2014-04-10"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   794
      <environment ref="merge049"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   795
      <test>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   796
         <stylesheet file="merge-053.xsl"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   797
         <initial-template name="main"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   798
      </test>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   799
      <result>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   800
         <error code="XTSE1505"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   801
      </result>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   802
   </test-case>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   803
   
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   804
   <test-case name="merge-054">
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   805
      <description>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   806
         xsl:merge: merge two documents with validation; validation specified without for-each-stream, error.
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   807
      </description>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   808
      <created by="Michael Kay" on="2014-04-10"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   809
      <environment ref="merge049"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   810
      <test>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   811
         <stylesheet file="merge-054.xsl"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   812
         <initial-template name="main"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   813
      </test>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   814
      <result>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   815
         <error code="XTSE0020"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   816
      </result>
419
d2d19ea525f9 More test case for xsl:merge
Michael Kay <mike@saxonica.com>
parents: 349
diff changeset
   817
   </test-case>   
426
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   818
   
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   819
   <test-case name="merge-055">
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   820
      <description>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   821
         xsl:merge: current-merge-group() not available in called template.
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   822
      </description>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   823
      <created by="Michael Kay" on="2014-04-10"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   824
      <environment ref="merge002"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   825
      <test>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   826
         <stylesheet file="merge-055.xsl"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   827
      </test>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   828
      <result>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   829
         <error code="XTDE3480"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   830
      </result>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   831
   </test-case> 
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   832
   
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   833
   <test-case name="merge-056">
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   834
      <description>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   835
         xsl:merge: current-merge-key() not available in called template.
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   836
      </description>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   837
      <created by="Michael Kay" on="2014-04-10"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   838
      <environment ref="merge002"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   839
      <test>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   840
         <stylesheet file="merge-056.xsl"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   841
      </test>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   842
      <result>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   843
         <error code="XTDE3510"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   844
      </result>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   845
   </test-case>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   846
   
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   847
   <test-case name="merge-057">
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   848
      <description>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   849
         xsl:merge: current-merge-group() used within a pattern.
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   850
      </description>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   851
      <created by="Michael Kay" on="2014-04-10"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   852
      <environment ref="merge002"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   853
      <test>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   854
         <stylesheet file="merge-057.xsl"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   855
      </test>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   856
      <result>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   857
         <error code="XTSE3470"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   858
      </result>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   859
   </test-case>  
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   860
   
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   861
   <test-case name="merge-058">
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   862
      <description>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   863
         xsl:merge: current-merge-key() used within a pattern.
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   864
      </description>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   865
      <created by="Michael Kay" on="2014-04-10"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   866
      <environment ref="merge002"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   867
      <test>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   868
         <stylesheet file="merge-058.xsl"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   869
      </test>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   870
      <result>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   871
         <error code="XTSE3500"/>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   872
      </result>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   873
   </test-case>
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   874
   
613
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   875
   <test-case name="merge-059">
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   876
      <description>Test xsl:merge-source with sort-before-merge=" no ".</description>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   877
      <created by="Debbie Lockett" on="2014-08-13"/>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   878
      <environment ref="merge008"/>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   879
      <test>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   880
         <stylesheet file="merge-059.xsl"/>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   881
      </test>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   882
      <result>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   883
         <assert-xml file="merge-018.out"/>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   884
      </result>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   885
   </test-case>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   886
   
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   887
   <test-case name="merge-060">
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   888
      <description>Test xsl:merge-source with sort-before-merge="true" and "false".</description>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   889
      <created by="Debbie Lockett" on="2014-08-13"/>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   890
      <environment ref="merge008"/>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   891
      <test>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   892
         <stylesheet file="merge-060.xsl"/>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   893
      </test>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   894
      <result>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   895
         <assert-xml file="merge-018.out"/>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   896
      </result>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   897
   </test-case>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   898
   
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   899
   <test-case name="merge-061">
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   900
      <description>Test xsl:merge-source with sort-before-merge="1" and "0".</description>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   901
      <created by="Debbie Lockett" on="2014-08-13"/>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   902
      <environment ref="merge008"/>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   903
      <test>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   904
         <stylesheet file="merge-061.xsl"/>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   905
      </test>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   906
      <result>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   907
         <assert-xml file="merge-018.out"/>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   908
      </result>
3041f3ed5957 New merge tests (spec change 26308)
debbie
parents: 426
diff changeset
   909
   </test-case>
614
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   910
   
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   911
   <test-case name="merge-062">
687
90e573da78fb Change tests merge-062, -063 to satisfy spec changes
Michael Kay <mike@saxonica.com>
parents: 614
diff changeset
   912
      <description>xsl:merge test on two heterogeneous files, using for-each-stream and streamable defaulted.</description>
614
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   913
      <created by="Debbie Lockett" on="2014-08-14"/>
705
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   914
      <modified by="Michael Kay" on="2014-09-30" change="add streaming dependency"/>
614
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   915
      <environment ref="merge002"/>
705
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   916
      <dependencies>
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   917
         <feature value="streaming"/>
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   918
      </dependencies>
614
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   919
      <test>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   920
         <stylesheet file="merge-062.xsl"/>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   921
      </test>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   922
      <result>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   923
         <assert-xml file="merge-002.out"/>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   924
      </result>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   925
   </test-case>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   926
   
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   927
   <test-case name="merge-063">
687
90e573da78fb Change tests merge-062, -063 to satisfy spec changes
Michael Kay <mike@saxonica.com>
parents: 614
diff changeset
   928
      <description>xsl:merge test on two heterogeneous files, using for-each-stream, and streamable=" yes " and " 1 ".</description>
614
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   929
      <created by="Debbie Lockett" on="2014-08-14"/>
705
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   930
      <modified by="Michael Kay" on="2014-09-30" change="add streaming dependency"/>
614
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   931
      <environment ref="merge002"/>
705
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   932
      <dependencies>
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   933
         <feature value="streaming"/>
2ad6b46b6395 Add streaming dependency to 5 tests
Michael Kay <mike@saxonica.com>
parents: 687
diff changeset
   934
      </dependencies>
614
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   935
      <test>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   936
         <stylesheet file="merge-063.xsl"/>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   937
      </test>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   938
      <result>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   939
         <assert-xml file="merge-002.out"/>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   940
      </result>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   941
   </test-case>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   942
   
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   943
   <test-case name="merge-064">
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   944
      <description>xsl:merge test on two heterogeneous files, using for-each-stream and streamable="No" (not allowed).</description>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   945
      <created by="Debbie Lockett" on="2014-08-14"/>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   946
      <environment ref="merge002"/>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   947
      <test>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   948
         <stylesheet file="merge-064.xsl"/>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   949
      </test>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   950
      <result>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   951
         <error code="XTSE0020"/>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   952
      </result>
3958edb74eba New tests for @streamable (spec change 26308)
debbie
parents: 613
diff changeset
   953
   </test-case>
1032
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   954
   
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   955
   <test-case name="merge-065">
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   956
      <description>xsl:merge test using accumulators.</description>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   957
      <created by="Michael Kay" on="2015-08-12"/>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   958
      <environment ref="merge002"/>
1044
585bbb774c33 Add required dependency
Michael Kay <mike@saxonica.com>
parents: 1032
diff changeset
   959
      <dependencies>
585bbb774c33 Add required dependency
Michael Kay <mike@saxonica.com>
parents: 1032
diff changeset
   960
         <feature value="streaming"/>
585bbb774c33 Add required dependency
Michael Kay <mike@saxonica.com>
parents: 1032
diff changeset
   961
      </dependencies>
1032
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   962
      <test>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   963
         <stylesheet file="merge-065.xsl"/>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   964
      </test>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   965
      <result>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   966
         <all-of>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   967
           <assert>/events/group[1]/item[1][ends-with(., 'log-file-1.xml - events')]</assert>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   968
           <assert>/events/group[1]/item[2][ends-with(., 'log-file-2.xml - log/day')]</assert>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   969
           <assert>/events/group[1]/event[@timestamp="2009-08-20T12:01:01Z"]</assert>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   970
           <assert>/events/group[1]/record[message='Temperature 15.4C']/time</assert>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   971
           <assert>/events/group[5]/item[1][ends-with(., 'log-file-2.xml - log/day')]</assert>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   972
         </all-of>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   973
      </result>
c4562c4c8ea0 Add an xsl:merge test using accumulators
Michael Kay <mike@saxonica.com>
parents: 1011
diff changeset
   974
   </test-case>
426
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 419
diff changeset
   975
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   976
</test-set>