tests/expr/higher-order-functions/_higher-order-functions-test-set.xml
author Michael Kay <mike@saxonica.com>
Mon, 30 Mar 2015 08:50:22 +0100
changeset 888 8b46519c1ab1
parent 886 9d7479739035
child 953 a936614c512c
permissions -rw-r--r--
Fix bug 28369
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="higher-order-functions">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     5
   <description>Tests higher-order-functions</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     6
   <environment name="hof-300">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     7
      <source role="." file="hof-300.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     8
   </environment>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     9
   <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    10
      <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    11
   </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    12
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    13
   <test-case name="higher-order-functions-001">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    14
      <description>inline function literal, user-defined function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    15
      <created by="Michael Kay" on="2012-11-07"/>
816
60af916fa1e3 Add logic to prevent dynamic function calls being rewritten as static calls
Michael Kay <mike@saxonica.com>
parents: 336
diff changeset
    16
      <modified by="Michael Kay" on="2015-01-29" change="inhibit optimization"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    17
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    18
         <stylesheet file="higher-order-functions-001.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    19
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    20
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    21
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    22
         <assert-xml><![CDATA[<out xmlns:local="http://local/">3</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    23
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    24
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    25
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    26
   <test-case name="higher-order-functions-002">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    27
      <description>inline function literal, user-defined function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    28
      <created by="Michael Kay" on="2012-11-07"/>
816
60af916fa1e3 Add logic to prevent dynamic function calls being rewritten as static calls
Michael Kay <mike@saxonica.com>
parents: 336
diff changeset
    29
      <modified by="Michael Kay" on="2015-01-29" change="inhibit optimization"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    30
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    31
         <stylesheet file="higher-order-functions-002.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    32
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    33
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    34
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    35
         <assert-xml><![CDATA[<out xmlns:local="http://local/">42</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    36
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    37
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    38
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    39
   <test-case name="higher-order-functions-003">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    40
      <description>inline function literal, imported user-defined function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    41
      <created by="Michael Kay" on="2012-11-07"/>
816
60af916fa1e3 Add logic to prevent dynamic function calls being rewritten as static calls
Michael Kay <mike@saxonica.com>
parents: 336
diff changeset
    42
      <modified by="Michael Kay" on="2015-01-29" change="inhibit optimization"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    43
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    44
         <stylesheet file="higher-order-functions-003.xsl"/>
42
463b697c785e Fix streamability tests for some/every/for
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
    45
         <stylesheet file="higher-order-functions-001.xsl" role="secondary"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    46
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    47
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    48
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    49
         <assert-xml><![CDATA[<out xmlns:local="http://local/">5</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    50
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    51
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    52
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    53
   <test-case name="higher-order-functions-004">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    54
      <description>inline function literal, system function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    55
      <created by="Michael Kay" on="2012-11-07"/>
816
60af916fa1e3 Add logic to prevent dynamic function calls being rewritten as static calls
Michael Kay <mike@saxonica.com>
parents: 336
diff changeset
    56
      <modified by="Michael Kay" on="2015-01-29" change="inhibit optimization"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    57
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    58
         <stylesheet file="higher-order-functions-004.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    59
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    60
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    61
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    62
         <assert-xml><![CDATA[<out xmlns:local="http://local/">1</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    63
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    64
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    65
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    66
   <test-case name="higher-order-functions-005">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    67
      <description>inline function literal, system function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    68
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    69
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    70
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    71
         <stylesheet file="higher-order-functions-005.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    72
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    73
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    74
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    75
         <assert-xml><![CDATA[<out xmlns:local="http://local/">abcdefgh</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    76
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    77
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    78
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    79
   <test-case name="higher-order-functions-006">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    80
      <description>inline function literal, constructor function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    81
      <created by="Michael Kay" on="2012-11-07"/>
816
60af916fa1e3 Add logic to prevent dynamic function calls being rewritten as static calls
Michael Kay <mike@saxonica.com>
parents: 336
diff changeset
    82
      <modified by="Michael Kay" on="2015-01-29" change="inhibit optimization"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    83
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    84
         <stylesheet file="higher-order-functions-006.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    85
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    86
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    87
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    88
         <assert-xml><![CDATA[<out xmlns:local="http://local/">2008-01-31</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    89
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    90
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    91
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    92
   <test-case name="higher-order-functions-007">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    93
      <description>inline function literal, constructor function, user-defined type</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    94
      <created by="Michael Kay" on="2012-11-07"/>
336
2c357b93bc5a add schema_aware dependency for higher-order-functions-007 test, remove redundant right parenthesis in higher-order-functions-065.xsl
Vitaliy Yudenkov <vyudenkov@gmail.com>
parents: 193
diff changeset
    95
      <modified by="Abel Braaksma" on="2013-12-10" change="Added schema_aware dependency"/>
816
60af916fa1e3 Add logic to prevent dynamic function calls being rewritten as static calls
Michael Kay <mike@saxonica.com>
parents: 336
diff changeset
    96
      <modified by="Michael Kay" on="2015-01-29" change="inhibit optimization"/>
60af916fa1e3 Add logic to prevent dynamic function calls being rewritten as static calls
Michael Kay <mike@saxonica.com>
parents: 336
diff changeset
    97
      <dependencies>
60af916fa1e3 Add logic to prevent dynamic function calls being rewritten as static calls
Michael Kay <mike@saxonica.com>
parents: 336
diff changeset
    98
         <feature value="schema_aware"/>
336
2c357b93bc5a add schema_aware dependency for higher-order-functions-007 test, remove redundant right parenthesis in higher-order-functions-065.xsl
Vitaliy Yudenkov <vyudenkov@gmail.com>
parents: 193
diff changeset
    99
      </dependencies>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   100
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   101
         <stylesheet file="higher-order-functions-007.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   102
         <initial-template name="main"/>
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
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   105
         <assert-xml><![CDATA[<out xmlns:local="http://local/">xyz987</out>]]></assert-xml>
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
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   108
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   109
   <test-case name="higher-order-functions-008">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   110
      <description>sequenceType 'function(*)'</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   111
      <created by="Michael Kay" on="2012-11-07"/>
816
60af916fa1e3 Add logic to prevent dynamic function calls being rewritten as static calls
Michael Kay <mike@saxonica.com>
parents: 336
diff changeset
   112
      <modified by="Michael Kay" on="2015-01-29" change="inhibit optimization"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   113
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   114
         <stylesheet file="higher-order-functions-008.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   115
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   116
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   117
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   118
         <assert-xml><![CDATA[<out xmlns:local="http://local/">3</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   119
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   120
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   121
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   122
   <test-case name="higher-order-functions-009">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   123
      <description>sequenceType 'function(x) as z'</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   124
      <created by="Michael Kay" on="2012-11-07"/>
816
60af916fa1e3 Add logic to prevent dynamic function calls being rewritten as static calls
Michael Kay <mike@saxonica.com>
parents: 336
diff changeset
   125
      <modified by="Michael Kay" on="2015-01-29" change="inhibit optimization"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   126
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   127
         <stylesheet file="higher-order-functions-009.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   128
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   129
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   130
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   131
         <assert-xml><![CDATA[<out xmlns:local="http://local/">5</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   132
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   133
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   134
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   135
   <test-case name="higher-order-functions-010">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   136
      <description>sequenceType 'function(x, y) as z'</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   137
      <created by="Michael Kay" on="2012-11-07"/>
816
60af916fa1e3 Add logic to prevent dynamic function calls being rewritten as static calls
Michael Kay <mike@saxonica.com>
parents: 336
diff changeset
   138
      <modified by="Michael Kay" on="2015-01-29" change="inhibit optimization"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   139
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   140
         <stylesheet file="higher-order-functions-010.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   141
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   142
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   143
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   144
         <assert-xml><![CDATA[<out xmlns:local="http://local/">7</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   145
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   146
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   147
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   148
   <test-case name="higher-order-functions-011">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   149
      <description>selecting from a sequence of functions</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   150
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   151
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   152
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   153
         <stylesheet file="higher-order-functions-011.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   154
         <initial-template name="main"/>
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
         <assert-xml><![CDATA[<out xmlns:local="http://local/">7</out>]]></assert-xml>
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="higher-order-functions-012">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   162
      <description>function returning a function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   163
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   164
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   165
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   166
         <stylesheet file="higher-order-functions-012.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   167
         <initial-template name="main"/>
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>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   170
         <assert-xml><![CDATA[<out xmlns:local="http://local/">MIKE mike</out>]]></assert-xml>
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="higher-order-functions-013">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   175
      <description>function returning a function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   176
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   177
      <dependencies/>
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="higher-order-functions-013.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   180
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   181
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   182
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   183
         <assert-xml><![CDATA[<out xmlns:local="http://local/">MIKE mike</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   184
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   185
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   186
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   187
   <test-case name="higher-order-functions-014">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   188
      <description>function expecting a function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   189
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   190
      <dependencies/>
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="higher-order-functions-014.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   193
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   194
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   195
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   196
         <assert-xml><![CDATA[<out xmlns:local="http://local/">MIKE mike</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   197
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   198
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   199
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   200
   <test-case name="higher-order-functions-015">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   201
      <description>function expecting a function, full signature</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   202
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   203
      <dependencies/>
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="higher-order-functions-015.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   206
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   207
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   208
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   209
         <assert-xml><![CDATA[<out xmlns:local="http://local/">MIKE mike</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   210
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   211
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   212
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   213
   <test-case name="higher-order-functions-016">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   214
      <description>function expecting a function, caller supplies local function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   215
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   216
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   217
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   218
         <stylesheet file="higher-order-functions-016.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   219
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   220
      </test>
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
         <assert-xml><![CDATA[<out xmlns:local="http://local/">zvxr</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   223
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   224
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   225
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   226
   <test-case name="higher-order-functions-017">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   227
      <description>function expecting a function, caller supplies local function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   228
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   229
      <dependencies/>
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
         <stylesheet file="higher-order-functions-017.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   232
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   233
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   234
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   235
         <assert-xml><![CDATA[<out xmlns:local="http://local/">zvxr</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   236
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   237
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   238
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   239
   <test-case name="higher-order-functions-018">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   240
      <description>function expecting a function, caller supplies inline function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   241
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   242
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   243
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   244
         <stylesheet file="higher-order-functions-018.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   245
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   246
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   247
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   248
         <assert-xml><![CDATA[<out xmlns:local="http://local/">wbua</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   249
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   250
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   251
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   252
   <test-case name="higher-order-functions-019">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   253
      <description>function expecting a function, caller supplies inline function; needs function coercion</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   254
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   255
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   256
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   257
         <stylesheet file="higher-order-functions-019.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   258
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   259
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   260
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   261
         <assert-xml><![CDATA[<out xmlns:local="http://local/">wbua</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   262
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   263
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   264
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   265
   <test-case name="higher-order-functions-020">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   266
      <description>name and arity of user-defined function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   267
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   268
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   269
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   270
         <stylesheet file="higher-order-functions-020.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   271
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   272
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   273
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   274
         <assert-xml><![CDATA[<out xmlns:local="http://local/">scramble http://local/ 2</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   275
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   276
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   277
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   278
   <test-case name="higher-order-functions-021">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   279
      <description>name and arity of a system-defined function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   280
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   281
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   282
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   283
         <stylesheet file="higher-order-functions-021.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   284
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   285
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   286
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   287
         <assert-xml><![CDATA[<out xmlns:local="http://local/">function-name http://www.w3.org/2005/xpath-functions 1</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   288
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   289
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   290
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   291
   <test-case name="higher-order-functions-022">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   292
      <description>name and arity of a constructor function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   293
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   294
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   295
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   296
         <stylesheet file="higher-order-functions-022.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   297
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   298
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   299
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   300
         <assert-xml><![CDATA[<out xmlns:local="http://local/">dateTime http://www.w3.org/2001/XMLSchema 1</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   301
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   302
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   303
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   304
   <test-case name="higher-order-functions-023">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   305
      <description>name and arity of a concat function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   306
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   307
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   308
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   309
         <stylesheet file="higher-order-functions-023.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   310
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   311
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   312
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   313
         <assert-xml><![CDATA[<out xmlns:local="http://local/">concat http://www.w3.org/2005/xpath-functions 123456</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   314
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   315
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   316
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   317
   <test-case name="higher-order-functions-024">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   318
      <description>name and arity of a concat function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   319
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   320
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   321
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   322
         <stylesheet file="higher-order-functions-024.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   323
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   324
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   325
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   326
         <assert-xml><![CDATA[<out xmlns:local="http://local/"><a loc="" uri="" arity="1" eloc="true" euri="true"/></out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   327
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   328
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   329
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   330
   <test-case name="higher-order-functions-025">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   331
      <description>curry a system function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   332
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   333
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   334
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   335
         <stylesheet file="higher-order-functions-025.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   336
         <initial-template name="main"/>
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
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   339
         <assert-xml><![CDATA[<out xmlns:local="http://local/">true false true false true</out>]]></assert-xml>
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
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   342
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   343
   <test-case name="higher-order-functions-026">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   344
      <description>return an inline function from a user-defined function. Uses function coercion.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   345
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   346
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   347
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   348
         <stylesheet file="higher-order-functions-026.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   349
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   350
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   351
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   352
         <assert-xml><![CDATA[<out xmlns:local="http://local/">A|nice|cup|of|tea</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   353
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   354
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   355
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   356
   <test-case name="higher-order-functions-027">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   357
      <description>return an inline function that uses variables from a user-defined function.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   358
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   359
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   360
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   361
         <stylesheet file="higher-order-functions-027.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   362
         <initial-template name="main"/>
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[<out xmlns:local="http://local/">A|NICE|CUP|OF|TEA</out>]]></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="higher-order-functions-028">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   370
      <description>return an inline function that uses global variables.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   371
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   372
      <dependencies/>
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="higher-order-functions-028.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   375
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   376
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   377
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   378
         <assert-xml><![CDATA[<out xmlns:local="http://local/">A|NICE|CUP|OF|TEA</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   379
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   380
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   381
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   382
   <test-case name="higher-order-functions-029">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   383
      <description>return an inline function that uses local function parameters.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   384
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   385
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   386
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   387
         <stylesheet file="higher-order-functions-029.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   388
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   389
      </test>
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
         <assert-xml><![CDATA[<out xmlns:local="http://local/">A|NICE|CUP|OF|TEA</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   392
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   393
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   394
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   395
   <test-case name="higher-order-functions-030">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   396
      <description>parenthesized expression in dynamic function call.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   397
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   398
      <dependencies/>
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
         <stylesheet file="higher-order-functions-030.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   401
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   402
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   403
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   404
         <assert-xml><![CDATA[<out xmlns:local="http://local/">MIKE</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   405
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   406
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   407
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   408
   <test-case name="higher-order-functions-031">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   409
      <description>context item is a function item.</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   410
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   411
      <dependencies/>
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="higher-order-functions-031.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   414
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   415
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   416
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   417
         <assert-xml><![CDATA[<out xmlns:local="http://local/">upper-case</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   418
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   419
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   420
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   421
   <test-case name="higher-order-functions-032">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   422
      <description>instance-of tests on user-defined function, varying the argument types - all true</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   423
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   424
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   425
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   426
         <stylesheet file="higher-order-functions-032.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   427
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   428
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   429
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   430
         <assert-xml><![CDATA[<out xmlns:local="http://local/">true true false false</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   431
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   432
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   433
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   434
   <test-case name="higher-order-functions-033">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   435
      <description>instance-of tests on user-defined function, varying the argument types - all false</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   436
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   437
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   438
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   439
         <stylesheet file="higher-order-functions-033.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   440
         <initial-template name="main"/>
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
         <assert-xml><![CDATA[<out xmlns:local="http://local/">true false false false false</out>]]></assert-xml>
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="higher-order-functions-034">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   448
      <description>instance-of tests on user-defined function, varying the result types</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   449
      <created by="Michael Kay" on="2012-11-07"/>
193
18d3294b6e40 See bug 21595
Michael Kay <mike@saxonica.com>
parents: 176
diff changeset
   450
      <modified by="Michael Kay" on="2013-04-05" change="See bug 21595"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   451
      <dependencies/>
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
         <stylesheet file="higher-order-functions-034.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   454
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   455
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   456
      <result>
193
18d3294b6e40 See bug 21595
Michael Kay <mike@saxonica.com>
parents: 176
diff changeset
   457
         <assert-xml><![CDATA[<out xmlns:local="http://local/">false false true true true false false false</out>]]></assert-xml>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   458
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   459
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   460
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   461
   <test-case name="higher-order-functions-035">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   462
      <description>Pass a sequence of functions that require coercion in different ways</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   463
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   464
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   465
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   466
         <stylesheet file="higher-order-functions-035.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   467
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   468
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   469
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   470
         <assert-xml><![CDATA[<out xmlns:local="http://local/">MICHAEL KAY~michael kay~Michail Kay~Michael</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   471
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   472
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   473
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   474
   <test-case name="higher-order-functions-036">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   475
      <description>Return a sequence of functions that require coercion in different ways</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   476
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   477
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   478
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   479
         <stylesheet file="higher-order-functions-036.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   480
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   481
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   482
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   483
         <assert-xml><![CDATA[<out xmlns:local="http://local/">MICHAEL KAY~michael kay~Michail Kay~Michael</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   484
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   485
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   486
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   487
   <test-case name="higher-order-functions-037">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   488
      <description>Implicit atomization works for various kinds of functions</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   489
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   490
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   491
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   492
         <stylesheet file="higher-order-functions-037.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   493
         <initial-template name="main"/>
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
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   496
         <assert-xml><![CDATA[<out xmlns:local="http://local/">MICHAEL KAY~'michael kay'~Michail Kay~Michael</out>]]></assert-xml>
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
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   499
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   500
   <test-case name="higher-order-functions-038">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   501
      <description>UntypedAtomic conversion works for various kinds of functions</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   502
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   503
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   504
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   505
         <stylesheet file="higher-order-functions-038.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   506
         <initial-template name="main"/>
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
         <assert-xml><![CDATA[<out xmlns:local="http://local/">123.456~123~124.456~123.46</out>]]></assert-xml>
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="higher-order-functions-039">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   514
      <description>numeric promotion works for various kinds of functions</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   515
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   516
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   517
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   518
         <stylesheet file="higher-order-functions-039.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   519
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   520
      </test>
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
         <assert-xml><![CDATA[<out xmlns:local="http://local/">123.456~123~124.456~123.46</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   523
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   524
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   525
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   526
   <test-case name="higher-order-functions-040">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   527
      <description>partial-apply supplying a function parameter</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   528
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   529
      <dependencies/>
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
         <stylesheet file="higher-order-functions-040.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   532
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   533
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   534
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   535
         <assert-xml><![CDATA[<out xmlns:local="http://local/">13</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   536
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   537
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   538
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   539
   <test-case name="higher-order-functions-041">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   540
      <description>Return an inline function that uses inner and outer local variables</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   541
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   542
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   543
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   544
         <stylesheet file="higher-order-functions-041.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   545
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   546
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   547
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   548
         <assert-xml file="higher-order-functions-041.out"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   549
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   550
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   551
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   552
   <test-case name="higher-order-functions-042">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   553
      <description>Nested inline functions referencing grandfather local variables</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   554
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   555
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   556
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   557
         <stylesheet file="higher-order-functions-042.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   558
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   559
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   560
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   561
         <assert-xml file="higher-order-functions-042.out"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   562
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   563
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   564
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   565
   <test-case name="higher-order-functions-043">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   566
      <description>Forwards reference to a literal function item</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   567
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   568
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   569
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   570
         <stylesheet file="higher-order-functions-043.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   571
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   572
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   573
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   574
         <assert-xml><![CDATA[<out xmlns:local="http://local/">6</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   575
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   576
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   577
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   578
   <test-case name="higher-order-functions-044">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   579
      <description>true#0 and false#0 as function items</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   580
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   581
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   582
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   583
         <stylesheet file="higher-order-functions-044.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   584
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   585
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   586
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   587
         <assert-xml><![CDATA[<out xmlns:local="http://local/">false true</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   588
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   589
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   590
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   591
   <test-case name="higher-order-functions-045">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   592
      <description>Partial application of a literal function item</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   593
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   594
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   595
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   596
         <stylesheet file="higher-order-functions-045.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   597
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   598
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   599
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   600
         <assert-xml><![CDATA[<out xmlns:local="http://local/">the</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   601
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   602
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   603
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   604
   <test-case name="higher-order-functions-046">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   605
      <description>Partial application of a literal function item</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   606
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   607
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   608
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   609
         <stylesheet file="higher-order-functions-046.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   610
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   611
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   612
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   613
         <assert-xml><![CDATA[<out xmlns:local="http://local/">true</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   614
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   615
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   616
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   617
   <test-case name="higher-order-functions-047">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   618
      <description>Repeated partial application of a function item</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   619
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   620
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   621
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   622
         <stylesheet file="higher-order-functions-047.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   623
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   624
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   625
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   626
         <assert-xml><![CDATA[<out xmlns:local="http://local/">[*]</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   627
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   628
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   629
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   630
   <test-case name="higher-order-functions-048">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   631
      <description>inline function literal, unknown user-defined function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   632
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   633
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   634
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   635
         <stylesheet file="higher-order-functions-048.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   636
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   637
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   638
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   639
         <error code="XPST0017"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   640
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   641
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   642
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   643
   <test-case name="higher-order-functions-049">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   644
      <description>inline function literal, unknown user-defined function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   645
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   646
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   647
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   648
         <stylesheet file="higher-order-functions-049.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   649
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   650
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   651
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   652
         <error code="XPST0017"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   653
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   654
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   655
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   656
   <test-case name="higher-order-functions-050">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   657
      <description>inline function literal, unknown function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   658
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   659
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   660
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   661
         <stylesheet file="higher-order-functions-050.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   662
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   663
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   664
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   665
         <error code="XPST0017"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   666
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   667
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   668
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   669
   <test-case name="higher-order-functions-051">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   670
      <description>inline function literal, unknown function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   671
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   672
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   673
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   674
         <stylesheet file="higher-order-functions-051.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   675
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   676
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   677
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   678
         <error code="XPST0017"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   679
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   680
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   681
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   682
   <test-case name="higher-order-functions-052">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   683
      <description>apply string() to a function item</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   684
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   685
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   686
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   687
         <stylesheet file="higher-order-functions-052.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   688
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   689
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   690
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   691
         <error code="FOTY0014"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   692
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   693
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   694
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   695
   <test-case name="higher-order-functions-053">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   696
      <description>apply data() to a function item</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   697
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   698
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   699
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   700
         <stylesheet file="higher-order-functions-053.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   701
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   702
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   703
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   704
         <error code="FOTY0013"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   705
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   706
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   707
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   708
   <test-case name="higher-order-functions-054">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   709
      <description>apply deep-equal() to a function item</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   710
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   711
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   712
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   713
         <stylesheet file="higher-order-functions-054.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   714
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   715
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   716
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   717
         <error code="FOTY0015"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   718
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   719
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   720
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   721
   <test-case name="higher-order-functions-055">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   722
      <description>atomize a function item</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   723
      <created by="Michael Kay" on="2012-11-07"/>
888
8b46519c1ab1 Fix bug 28369
Michael Kay <mike@saxonica.com>
parents: 886
diff changeset
   724
      <modified by="Michael Kay" on="2015-03-30" change="correct expected error code. Note bug 27610."/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   725
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   726
         <stylesheet file="higher-order-functions-055.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   727
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   728
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   729
      <result>
888
8b46519c1ab1 Fix bug 28369
Michael Kay <mike@saxonica.com>
parents: 886
diff changeset
   730
         <error code="FOTY0013"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   731
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   732
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   733
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   734
   <test-case name="higher-order-functions-056">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   735
      <description>atomize a function item</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   736
      <created by="Michael Kay" on="2012-11-07"/>
888
8b46519c1ab1 Fix bug 28369
Michael Kay <mike@saxonica.com>
parents: 886
diff changeset
   737
      <modified by="Michael Kay" on="2015-03-30" change="correct expected error code. Note bug 27610."/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   738
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   739
         <stylesheet file="higher-order-functions-056.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   740
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   741
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   742
      <result>
888
8b46519c1ab1 Fix bug 28369
Michael Kay <mike@saxonica.com>
parents: 886
diff changeset
   743
         <error code="FOTY0013"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   744
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   745
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   746
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   747
   <test-case name="higher-order-functions-057">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   748
      <description>In SequenceType syntax, Result type required if argument type given</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   749
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   750
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   751
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   752
         <stylesheet file="higher-order-functions-057.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   753
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   754
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   755
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   756
         <error code="XPST0003"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   757
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   758
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   759
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   760
   <test-case name="higher-order-functions-058">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   761
      <description>Heterogeneous sequence on rhs of "/"</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   762
      <created by="Michael Kay" on="2012-11-07"/>
888
8b46519c1ab1 Fix bug 28369
Michael Kay <mike@saxonica.com>
parents: 886
diff changeset
   763
      <modified by="Michael Kay" on="2015-03-30" change="See bug 28369"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   764
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   765
         <stylesheet file="higher-order-functions-058.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   766
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   767
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   768
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   769
         <error code="XPTY0018"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   770
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   771
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   772
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   773
   <test-case name="higher-order-functions-059">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   774
      <description>Pass a sequence of functions that cannot be coerced to the required type</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   775
      <created by="Michael Kay" on="2012-11-07"/>
883
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   776
      <modified by="Abel Braaksma" on="2015-03-29" change="Fix bug 24048, should raise XTTE0790"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   777
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   778
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   779
         <stylesheet file="higher-order-functions-059.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   780
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   781
      <result>
883
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   782
         <error code="XTTE0790"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   783
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   784
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   785
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   786
   <test-case name="higher-order-functions-060">
883
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   787
      <description>
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   788
         Pass a sequence of functions that can be coerced to the required type (same arity) 
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   789
         but have wrong return type. Allows both XPTY0004 (if the param uses late binding after
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   790
         coercion and the error in the coercion wrapper is not detected during coercion) or
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   791
         XTTE0790 (if the wrong return type, xs:integer but xs:string expected, is found during
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   792
         coercion but prior to function evaluation in the stylesheet function body)
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   793
      </description>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   794
      <created by="Michael Kay" on="2012-11-07"/>
883
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   795
      <modified by="Abel Braaksma" on="2015-03-29" change="
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   796
         Fix bug 24048, change function body to actually call function items to force evaluation, 
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   797
         allow both XPTY0004 (late evaluation) and XTTE0790 (early detection of wrong return type during coercion)"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   798
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   799
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   800
         <stylesheet file="higher-order-functions-060.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   801
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   802
      <result>
883
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   803
         <any-of>
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   804
            <error code="XPTY0004"/>
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   805
            <error code="XTTE0790"/>
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   806
         </any-of>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   807
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   808
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   809
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   810
   <test-case name="higher-order-functions-061">
883
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   811
      <description>
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   812
         Pass a sequence of functions that can be coerced to the required type (same arity) 
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   813
         but have wrong argument type. Allows both XPTY0004 (if the param uses late binding after
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   814
         coercion and the error in the coercion wrapper is not detected during coercion) or
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   815
         XTTE0790 (if the wrong return type, xs:integer but xs:string expected, is found during
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   816
         coercion but prior to function evaluation in the stylesheet function body)
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   817
      </description>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   818
      <created by="Michael Kay" on="2012-11-07"/>
883
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   819
      <modified by="Abel Braaksma" on="2015-03-29" change="
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   820
         Fix bug 24048, change function body to actually call function items to force evaluation, 
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   821
         allow both XPTY0004 (late evaluation) and XTTE0790 (early detection of wrong return type during coercion)"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   822
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   823
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   824
         <stylesheet file="higher-order-functions-061.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   825
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   826
      <result>
883
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   827
         <any-of>
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   828
            <error code="XPTY0004"/>
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   829
            <error code="XTTE0790"/>
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   830
         </any-of>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   831
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   832
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   833
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   834
   <test-case name="higher-order-functions-062">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   835
      <description>partial-apply, argument number out of range</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   836
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   837
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   838
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   839
         <stylesheet file="higher-order-functions-062.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   840
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   841
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   842
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   843
         <error code="XPST0017"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   844
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   845
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   846
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   847
   <test-case name="higher-order-functions-063">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   848
      <description>partial-apply, argument number out of range</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   849
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   850
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   851
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   852
         <stylesheet file="higher-order-functions-063.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   853
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   854
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   855
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   856
         <error code="XPTY0004"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   857
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   858
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   859
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   860
   <test-case name="higher-order-functions-064">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   861
      <description>partial-apply, argument invalid for target function</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   862
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   863
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   864
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   865
         <stylesheet file="higher-order-functions-064.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   866
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   867
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   868
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   869
         <error code="XPTY0004"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   870
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   871
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   872
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   873
   <test-case name="higher-order-functions-065">
883
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   874
      <description>
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   875
         Partial apply
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   876
         Pass a function item that can be coerced to the required type (same arity) but has wrong 
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   877
         argument type and return type. Allows both XPTY0004 (if the param uses late binding after
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   878
         coercion and the error in the coercion wrapper is not detected during coercion) or
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   879
         XTTE0790 (if the wrong return type, xs:integer but xs:string expected, is found during
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   880
         coercion but prior to function evaluation in the stylesheet function body)
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   881
      </description>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   882
      <created by="Michael Kay" on="2012-11-07"/>
336
2c357b93bc5a add schema_aware dependency for higher-order-functions-007 test, remove redundant right parenthesis in higher-order-functions-065.xsl
Vitaliy Yudenkov <vyudenkov@gmail.com>
parents: 193
diff changeset
   883
      <modified by="Abel Braaksma" on="2013-12-10" change="Removed redundant right parentheses"/>
883
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   884
      <modified by="Abel Braaksma" on="2015-03-29" change="
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   885
         Fix bug 24048, allow both XPTY0004 (late evaluation) and XTTE0790 (early detection 
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   886
         of wrong return and argument type (xs:string vs xs:double) during coercion)"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   887
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   888
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   889
         <stylesheet file="higher-order-functions-065.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   890
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   891
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   892
      <result>
883
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   893
         <any-of>
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   894
            <error code="XPTY0004"/>
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   895
            <error code="XTTE0790"/>
fa5a00e4959b Fixing bug 24048, function coercion dramady
abraaksm
parents: 816
diff changeset
   896
         </any-of>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   897
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   898
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   899
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   900
   <test-case name="higher-order-functions-066">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   901
      <description>failure in numeric promotion</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   902
      <created by="Michael Kay" on="2012-11-07"/>
884
6cb8bf64b3f9 Bug#28364 and Bug#28365, minor corrections
abraaksm
parents: 883
diff changeset
   903
      <modified by="Abel Braaksma" on="2015-03-29" change="Bug 28364, undeclared namespace prefix in test (fn:floor) and variable bound to non-existing function"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   904
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   905
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   906
         <stylesheet file="higher-order-functions-066.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   907
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   908
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   909
         <error code="XPTY0004"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   910
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   911
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   912
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   913
   <test-case name="higher-order-functions-067">
176
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   914
      <description>Originated as a Saxon bug report from jakub@maly.cz, dated Feb 2012</description>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   915
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   916
      <environment ref="hof-300"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   917
      <dependencies/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   918
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   919
         <stylesheet file="higher-order-functions-067.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   920
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   921
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   922
         <assert-xml file="higher-order-functions-067.out"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   923
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   924
   </test-case>
176
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   925
   
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   926
   <test-case name="higher-order-functions-068">
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   927
      <description>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   928
         Nested inline functions with closures.
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   929
         Originated as a Saxon bug report from Abel Braaksma, dated Feb 2013
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   930
      </description>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   931
      <created by="Abel Braaksma" on="2013-02-06"/>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   932
      <dependencies/>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   933
      <test>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   934
         <stylesheet file="higher-order-functions-068.xsl"/>
193
18d3294b6e40 See bug 21595
Michael Kay <mike@saxonica.com>
parents: 176
diff changeset
   935
         <initial-template name="main"/>
176
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   936
      </test>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   937
      <result>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   938
         <assert>/out = '55'</assert>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   939
      </result>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   940
   </test-case>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   941
   
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   942
   <test-case name="higher-order-functions-069">
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   943
      <description>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   944
         Apply-templates to function items
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   945
      </description>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   946
      <created by="Michael Kay" on="2013-02-07"/>
193
18d3294b6e40 See bug 21595
Michael Kay <mike@saxonica.com>
parents: 176
diff changeset
   947
      <modified by="Michael Kay" on="2013-02-07" change="correct test metadata"/>
884
6cb8bf64b3f9 Bug#28364 and Bug#28365, minor corrections
abraaksm
parents: 883
diff changeset
   948
      <modified by="Abel Braaksma" on="2015-03-29" change="Bug 28365, test was dependent on implementation defined namespace prefix"/>
176
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   949
      <test>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   950
         <stylesheet file="higher-order-functions-069.xsl"/>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   951
      </test>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   952
      <result>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   953
         <all-of>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   954
           <assert>/out/f[1][@name='round' and @arity='1']</assert>
884
6cb8bf64b3f9 Bug#28364 and Bug#28365, minor corrections
abraaksm
parents: 883
diff changeset
   955
           <assert>/out/f[2][@name='squared' and @arity='1']</assert>
176
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   956
           <assert>/out/f[3][@name='' and @arity='1']</assert>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   957
           <assert>/out/f[4][@name='' and @arity='1']</assert>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   958
         </all-of>  
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   959
      </result>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   960
   </test-case>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   961
   
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   962
   <test-case name="higher-order-functions-070">
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   963
      <description>
886
9d7479739035 Bug#28366 reverted (the error was correct, see bug entry)
abraaksm
parents: 885
diff changeset
   964
         Global variable cannot refer to itself, even if it makes sense. A variable is not in scope of itself.
176
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   965
      </description>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   966
      <created by="Michael Kay" on="2013-02-07"/>
886
9d7479739035 Bug#28366 reverted (the error was correct, see bug entry)
abraaksm
parents: 885
diff changeset
   967
      <modified by="Abel Braaksma" on="2015-03-29" change="Bug 28367 and 28366 (fixed invalid sequence type for 28367, but 28366 is reverted, not a bug"/>
176
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   968
      <environment ref="hof-300"/>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   969
      <dependencies/>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   970
      <test>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   971
         <stylesheet file="higher-order-functions-070.xsl"/>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   972
      </test>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   973
      <result>
886
9d7479739035 Bug#28366 reverted (the error was correct, see bug entry)
abraaksm
parents: 885
diff changeset
   974
         <error code="XPST0008"/>
176
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   975
      </result>
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   976
   </test-case>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   977
</test-set>
176
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   978
1f9d53fb5809 Extra higher-order-function tests
Michael Kay <mike@saxonica.com>
parents: 42
diff changeset
   979