tests/attr/static/_static-test-set.xml
author abraaksm
Tue, 07 Apr 2015 19:15:31 +0200
changeset 935 5986713e5c76
parent 893 d42d1074b77a
child 964 9f33a088a4d5
permissions -rw-r--r--
Bug 28429, bug 28355, error XTDE0610 is no more in 3.0, fix for static-xxx tests
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
     2
<test-set xmlns="http://www.w3.org/2012/10/xslt-test-catalog" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="static">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
     3
   <description>Tests static attributes on xsl:variable and xsl:param declarations</description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
     4
   <environment name="static-1">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
     5
      <source role=".">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
     6
         <content><![CDATA[<doc/>]]></content>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
     7
      </source>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
     8
   </environment>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
     9
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    10
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    11
   <test-case name="static-001">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    12
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    13
         Tests static attribute on xsl:param and dynamic ctx usage in a TVT
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    14
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    15
      <keywords>static-variable tvt</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    16
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    17
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    18
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    19
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    20
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    21
         <stylesheet file="static-001.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    22
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    23
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
    24
         <assert-string-value>success</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    25
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    26
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    27
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    28
   <test-case name="static-001a">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    29
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    30
         Tests setting a static attr to a value from the calling processor, and its usage in a TVT
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    31
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    32
      <keywords>static-variable tvt</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    33
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    34
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    35
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    36
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    37
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    38
         <stylesheet file="static-001.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    39
         <param name="static-param" static="yes" select="'Hello World'"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    40
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    41
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
    42
         <assert-string-value>Hello World</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    43
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    44
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    45
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    46
   <test-case name="static-002">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    47
      <description>
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
    48
         Using a static param in another static param, which uppercases the value
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    49
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    50
      <keywords>static-variable tvt</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    51
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    52
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    53
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    54
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    55
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    56
         <stylesheet file="static-002.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    57
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    58
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
    59
         <assert-string-value>successSUCCESS</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    60
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    61
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    62
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    63
   <test-case name="static-002a">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    64
      <description>
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
    65
         Using a static param in another static param, set base value from the calling processor, value will be uppercased
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    66
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    67
      <keywords>static-variable tvt</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    68
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    69
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    70
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    71
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    72
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    73
         <stylesheet file="static-002.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    74
         <param name="static-param" static="yes" select="'ohgoodie'" />
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    75
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    76
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
    77
         <assert-string-value>ohgoodieOHGOODIE</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    78
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    79
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    80
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    81
   <test-case name="static-002b">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    82
      <description>
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
    83
         Using a static param in another static param, set overridden value from the calling processor, the uppercasing param will now have the set value
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    84
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    85
      <keywords>static-variable tvt</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    86
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    87
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    88
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    89
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    90
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    91
         <stylesheet file="static-002.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    92
         <param name="alt-param" static="yes" select="'ohgoodie'" />
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    93
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
    94
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
    95
         <assert-string-value>successohgoodie</assert-string-value>
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
    96
      </result>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
    97
   </test-case>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
    98
   
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
    99
   <test-case name="static-002c">
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   100
      <description>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   101
         Using a static param in another static param, set overridden and overriding value from the calling processor, the uppercasing param will now have the set value
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   102
      </description>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   103
      <keywords>static-variable tvt</keywords>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   104
      <created by="Abel Braaksma" on="2015-03-10"/>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   105
      <dependencies>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   106
         <spec value="XSLT30+"/>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   107
      </dependencies>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   108
      <test>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   109
         <stylesheet file="static-002.xsl"/>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   110
         <param name="static-param" static="yes" select="'errare humanum '" />
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   111
         <param name="alt-param" static="yes" select="'est'" />
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   112
      </test>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   113
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   114
         <assert-string-value>errare humanum est</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   115
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   116
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   117
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   118
   <test-case name="static-003">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   119
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   120
         Using a static param in another static param, but in the wrong stylesheet declaration order: ERROR scenario
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   121
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   122
      <keywords>static-variable tvt err:XPST0008</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   123
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   124
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   125
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   126
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   127
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   128
         <stylesheet file="static-003.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   129
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   130
      <result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   131
         <error code="XPST0008"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   132
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   133
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   134
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   135
   <test-case name="static-003a">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   136
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   137
         Using a static param in another static param, but in the wrong stylesheet declaration order
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   138
         After setting the value from the calling processor, it is not an error anymore.
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   139
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   140
      <keywords>static-variable tvt err:XPST0008</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   141
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   142
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   143
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   144
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   145
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   146
         <stylesheet file="static-003.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   147
         <param name="alt-param" static="yes" select="' in a better world'" />
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   148
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   149
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   150
         <assert-string-value>success in a better world</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   151
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   152
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   153
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   154
   <test-case name="static-004">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   155
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   156
         Simple test with a required static param
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   157
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   158
      <keywords>static-variable required-param tvt</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   159
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   160
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   161
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   162
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   163
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   164
         <stylesheet file="static-004.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   165
         <param name="req-param" static="yes" select="'required'" />
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   166
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   167
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   168
         <assert-string-value>required-required</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   169
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   170
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   171
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   172
   <test-case name="static-004a">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   173
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   174
         Simple test with a required static param, no value given, ERROR scenario
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   175
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   176
      <keywords>static-variable required-param tvt err:XTSE0050</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   177
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   178
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   179
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   180
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   181
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   182
         <stylesheet file="static-004.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   183
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   184
      <result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   185
         <error code="XTDE0050"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   186
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   187
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   188
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   189
   <test-case name="static-005">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   190
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   191
         Simple test with a required static param, select-attribute present, ERROR scenario
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   192
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   193
      <keywords>static-variable required-param tvt err:XTSE0010</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   194
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   195
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   196
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   197
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   198
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   199
         <stylesheet file="static-005.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   200
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   201
      <result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   202
         <error code="XTSE0010"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   203
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   204
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   205
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   206
   <test-case name="static-005a">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   207
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   208
         Simple test with a required static param, select-attribute present, ERROR scenario (even when param value is supplied)
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   209
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   210
      <keywords>static-variable required-param tvt err:XTSE0010</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   211
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   212
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   213
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   214
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   215
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   216
         <stylesheet file="static-005.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   217
         <param name="req-param" static="yes" select="'this will not work'" />
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   218
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   219
      <result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   220
         <error code="XTSE0010"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   221
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   222
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   223
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   224
   <test-case name="static-006">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   225
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   226
         Simple test with a required static param, seqtor is non-empty, ERROR scenario
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   227
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   228
      <keywords>static-variable required-param tvt err:XTSE0010</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   229
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   230
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   231
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   232
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   233
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   234
         <stylesheet file="static-006.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   235
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   236
      <result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   237
         <error code="XTSE0010"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   238
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   239
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   240
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   241
   <test-case name="static-006a">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   242
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   243
         Simple test with a required static param, seqtor is non-empty, ERROR scenario (even when a value is supplied)
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   244
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   245
      <keywords>static-variable required-param tvt err:XTSE0010</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   246
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   247
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   248
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   249
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   250
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   251
         <stylesheet file="static-006.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   252
         <param name="req-param" static="yes" select="'this will not work'" />
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   253
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   254
      <result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   255
         <error code="XTSE0010"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   256
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   257
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   258
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   259
   <test-case name="static-007">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   260
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   261
         Simple test with a static param, seqtor is non-empty, ERROR scenario
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   262
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   263
      <keywords>static-variable required-param tvt err:XTSE0010</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   264
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   265
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   266
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   267
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   268
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   269
         <stylesheet file="static-007.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   270
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   271
      <result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   272
         <error code="XTSE0010"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   273
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   274
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   275
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   276
   <test-case name="static-007a">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   277
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   278
         Simple test with a static param, seqtor is non-empty, ERROR scenario (even when a value is supplied)
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   279
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   280
      <keywords>static-variable required-param tvt err:XTSE0010</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   281
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   282
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   283
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   284
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   285
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   286
         <stylesheet file="static-007.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   287
         <param name="static-param" static="yes" select="'this will not work'" />
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   288
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   289
      <result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   290
         <error code="XTSE0010"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   291
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   292
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   293
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   294
   <test-case name="static-008">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   295
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   296
         Simple test with a static param, no select attr, no as attr, which is allowed and defaults to empty string
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   297
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   298
      <keywords>static-variable tvt</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   299
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   300
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   301
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   302
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   303
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   304
         <stylesheet file="static-008.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   305
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   306
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   307
         <assert-string-value>false--true</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   308
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   309
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   310
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   311
   <test-case name="static-008a">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   312
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   313
         Simple test with a static param, no select attr, no as attr, which is allowed, and is set by the processor
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   314
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   315
      <keywords>static-variable tvt</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   316
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   317
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   318
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   319
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   320
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   321
         <stylesheet file="static-008.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   322
         <param name="static-param" static="yes" select="'not so empty anymore'" />
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   323
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   324
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   325
         <assert-string-value>false-NOT SO EMPTY ANYMORE-false</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   326
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   327
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   328
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   329
   <test-case name="static-009">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   330
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   331
         Simple test with static param with implicit default value of item()*, no select attr, value NOT set from calling processor, defaults to empty seq
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   332
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   333
      <keywords>static-variable tvt implicit-default item occurrence-indicator</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   334
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   335
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   336
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   337
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   338
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   339
         <stylesheet file="static-009.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   340
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   341
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   342
         <assert-string-value>true--false</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   343
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   344
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   345
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   346
   <test-case name="static-009a">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   347
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   348
         Simple test with static param with implicit default value of item()*, no select attr, value set from calling processor
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   349
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   350
      <keywords>static-variable tvt implicit-default item occurrence-indicator</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   351
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   352
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   353
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   354
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   355
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   356
         <stylesheet file="static-009.xsl"/>
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   357
         <param name="static-param" static="yes" as="xs:untypedAtomic" select="23" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   358
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   359
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   360
         <assert-string-value>false-230-false</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   361
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   362
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   363
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   364
   <test-case name="static-010">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   365
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   366
         Simple test with static param with implicit default value of xs:integer?, no select attr, value NOT set from calling processor, defaults to empty seq
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   367
         Note: this should behave similarly to setting the default value of a non-static param, i.e., the default value is the empty sequence.
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   368
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   369
      <keywords>static-variable tvt implicit-default xs:integer occurrence-indicator</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   370
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   371
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   372
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   373
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   374
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   375
         <stylesheet file="static-010.xsl"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   376
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   377
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   378
         <assert-string-value>true--</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   379
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   380
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   381
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   382
   <test-case name="static-010a">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   383
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   384
         Simple test with static param with implicit default value of xs:integer?, no select attr, value set from calling processor
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   385
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   386
      <keywords>static-variable tvt implicit-default xs:integer occurrence-indicator</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   387
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   388
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   389
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   390
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   391
      <test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   392
         <stylesheet file="static-010.xsl"/>
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   393
         <param name="static-param" as="xs:integer" select="541" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   394
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   395
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   396
         <assert-string-value>false-5410-41</assert-string-value>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   397
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   398
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   399
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   400
   <test-case name="static-011">
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   401
      <description>
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   402
         Simple test with static param with implicit default value of xs:integer?, no select attr, value NOT set from calling processor, defaults to empty seq
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   403
         Note: this should behave similarly to setting the default value of a non-static param, i.e., the default value is the empty sequence.
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   404
         Note: this tests an edge-case situation where an empty-sequence value of type xs:integer? is deliberately compared with xs:string, which is legal
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   405
         See: https://lists.w3.org/Archives/Member/w3c-xsl-wg/2015Mar/0058.html (member only)
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   406
      </description>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   407
      <keywords>static-variable tvt implicit-default xs:integer occurrence-indicator</keywords>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   408
      <created by="Abel Braaksma" on="2015-03-10"/>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   409
      <dependencies>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   410
         <spec value="XSLT30+"/>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   411
      </dependencies>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   412
      <test>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   413
         <stylesheet file="static-011.xsl"/>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   414
      </test>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   415
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   416
         <assert-string-value>true--false</assert-string-value>
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   417
      </result>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   418
   </test-case>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   419
   
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   420
   <test-case name="static-011a">
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   421
      <description>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   422
         Simple test with static param with implicit default value of xs:integer?, no select attr, value set from calling processor to the empty seq
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   423
         Note: this should behave similarly to setting the default value of a non-static param, i.e., the default value is the empty sequence.
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   424
         Note: this tests an edge-case situation where an empty-sequence value of type xs:integer? is deliberately compared with xs:string, which is legal
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   425
         See: https://lists.w3.org/Archives/Member/w3c-xsl-wg/2015Mar/0058.html (member only)
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   426
      </description>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   427
      <keywords>static-variable tvt implicit-default xs:integer occurrence-indicator</keywords>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   428
      <created by="Abel Braaksma" on="2015-03-10"/>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   429
      <dependencies>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   430
         <spec value="XSLT30+"/>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   431
      </dependencies>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   432
      <test>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   433
         <stylesheet file="static-011.xsl"/>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   434
         <!-- expected value is xs:integer, left untyped to allow empty seq -->
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   435
         <param name="static-param" static="yes" select="()" />
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   436
      </test>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   437
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   438
         <assert-string-value>true--false</assert-string-value>
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   439
      </result>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   440
   </test-case>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   441
   
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   442
   <test-case name="static-011b">
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   443
      <description>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   444
         Simple test with static param with implicit default value of xs:integer?, no select attr, value set from calling processor, defaults to empty seq
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   445
         Note: this tests an edge-case situation where an empty-sequence value of type xs:integer? is deliberately compared with xs:string, which is legal
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   446
         (reverse of prev test, raising the type error if value is set to something other than an empty seq)
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   447
         See: https://lists.w3.org/Archives/Member/w3c-xsl-wg/2015Mar/0058.html (member only)
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   448
      </description>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   449
      <keywords>static-variable tvt implicit-default xs:integer occurrence-indicator</keywords>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   450
      <created by="Abel Braaksma" on="2015-03-10"/>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   451
      <dependencies>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   452
         <spec value="XSLT30+"/>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   453
      </dependencies>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   454
      <test>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   455
         <stylesheet file="static-011.xsl"/>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   456
         <param name="static-param" static="yes" select="124" />
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   457
      </test>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   458
      <result>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   459
         <error code="XPTY0004" />
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   460
      </result>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   461
   </test-case>
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   462
   
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   463
   <test-case name="static-012">
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   464
      <description>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   465
         Simple test with static param that is implicitly mandatory with type xs:integer, no select attr, value NOT set from calling processor, ERROR scenario
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   466
         (this follows the same rules as non-static parameters)
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   467
         (See also Bug#28355, this error seems to have disappeared from the spec.)
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   468
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   469
      <keywords>static-variable tvt implicit-default xs:integer occurrence-indicator</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   470
      <created by="Abel Braaksma" on="2015-03-10"/>
935
5986713e5c76 Bug 28429, bug 28355, error XTDE0610 is no more in 3.0, fix for static-xxx tests
abraaksm
parents: 893
diff changeset
   471
      <modified by="Abel Braaksma" on="2015-04-07" change="Bug 28429 and 28355, error XTDE0610 was dropped in 3.0"/>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   472
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   473
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   474
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   475
      <test>
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   476
         <stylesheet file="static-012.xsl"/>         
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   477
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   478
      <result>
935
5986713e5c76 Bug 28429, bug 28355, error XTDE0610 is no more in 3.0, fix for static-xxx tests
abraaksm
parents: 893
diff changeset
   479
         <!-- see for the error discussion: Bug 28355 -->
5986713e5c76 Bug 28429, bug 28355, error XTDE0610 is no more in 3.0, fix for static-xxx tests
abraaksm
parents: 893
diff changeset
   480
         <error code="XTDE0700"/>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   481
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   482
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   483
   
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   484
   <test-case name="static-012a">
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   485
      <description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   486
         Simple test with static param with explicit default value of xs:integer, no select attr, value set from calling processor
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   487
      </description>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   488
      <keywords>static-variable tvt implicitly-mandatory xs:integer</keywords>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   489
      <created by="Abel Braaksma" on="2015-03-10"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   490
      <dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   491
         <spec value="XSLT30+"/>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   492
      </dependencies>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   493
      <test>
877
0509f08975a0 Fixing new static param tests, adding new ones
abraaksm
parents: 871
diff changeset
   494
         <stylesheet file="static-012.xsl"/>
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   495
         <param name="static-param" static="yes" as="xs:integer" select="23" />
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   496
      </test>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   497
      <result>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   498
         <assert-string-value>230</assert-string-value>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   499
      </result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   500
   </test-case>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   501
   
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   502
   <test-case name="static-013">
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   503
      <description>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   504
         Implicitly mandatory param by an incompatible default value, value not set by caller, error
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   505
         (this follows the same rules as non-static parameters)
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   506
         (See also Bug#28355, this error seems to have disappeared from the spec.)
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   507
      </description>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   508
      <keywords>static-variable tvt implicit-default xs:integer occurrence-indicator</keywords>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   509
      <created by="Abel Braaksma" on="2015-03-10"/>
935
5986713e5c76 Bug 28429, bug 28355, error XTDE0610 is no more in 3.0, fix for static-xxx tests
abraaksm
parents: 893
diff changeset
   510
      <modified by="Abel Braaksma" on="2015-04-07" change="Bug 28429 and 28355, error XTDE0610 was dropped in 3.0"/>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   511
      <dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   512
         <spec value="XSLT30+"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   513
      </dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   514
      <test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   515
         <stylesheet file="static-013.xsl"/>         
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   516
      </test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   517
      <result>
935
5986713e5c76 Bug 28429, bug 28355, error XTDE0610 is no more in 3.0, fix for static-xxx tests
abraaksm
parents: 893
diff changeset
   518
         <!-- see for the error discussion: Bug 28355 -->
5986713e5c76 Bug 28429, bug 28355, error XTDE0610 is no more in 3.0, fix for static-xxx tests
abraaksm
parents: 893
diff changeset
   519
         <error code="XTDE0700"/>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   520
      </result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   521
   </test-case>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   522
   
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   523
   <test-case name="static-013a">
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   524
      <description>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   525
         Implicitly mandatory param by an incompatible default value, value set by caller, no error
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   526
      </description>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   527
      <keywords>static-variable tvt implicitly-mandatory xs:integer</keywords>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   528
      <created by="Abel Braaksma" on="2015-03-10"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   529
      <dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   530
         <spec value="XSLT30+"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   531
      </dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   532
      <test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   533
         <stylesheet file="static-013.xsl"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   534
         <param name="static-param" static="yes" as="xs:integer" select="111" />
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   535
      </test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   536
      <result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   537
         <assert-string-value>110889</assert-string-value>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   538
      </result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   539
   </test-case>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   540
   
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   541
   <test-case name="static-013b">
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   542
      <description>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   543
         Implicitly mandatory param by an incompatible default value, value set by caller to a promotable type, no error
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   544
      </description>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   545
      <keywords>static-variable tvt implicitly-mandatory xs:integer</keywords>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   546
      <created by="Abel Braaksma" on="2015-03-10"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   547
      <dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   548
         <spec value="XSLT30+"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   549
      </dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   550
      <test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   551
         <stylesheet file="static-013.xsl"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   552
         <param name="static-param" static="yes" as="xs:untypedAtomic" select="111" />
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   553
      </test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   554
      <result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   555
         <assert-string-value>110889</assert-string-value>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   556
      </result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   557
   </test-case>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   558
   
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   559
   <test-case name="static-013c">
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   560
      <description>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   561
         Implicitly mandatory param by an incompatible default value, value set by caller to incompatible type, type error
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   562
      </description>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   563
      <keywords>static-variable tvt implicitly-mandatory xs:integer err:XTTE0590</keywords>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   564
      <created by="Abel Braaksma" on="2015-03-10"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   565
      <dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   566
         <spec value="XSLT30+"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   567
      </dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   568
      <test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   569
         <stylesheet file="static-013.xsl"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   570
         <param name="static-param" static="yes" as="xs:string" select="111" />
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   571
      </test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   572
      <result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   573
         <error code="XTTE0590"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   574
      </result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   575
   </test-case>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   576
   
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   577
   <test-case name="static-014">
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   578
      <description>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   579
         Static param with tunnel attribute set, but not referenced, static error.
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   580
      </description>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   581
      <keywords>static-variable err:XTSE0020</keywords>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   582
      <created by="Abel Braaksma" on="2015-03-10"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   583
      <dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   584
         <spec value="XSLT30+"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   585
      </dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   586
      <test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   587
         <stylesheet file="static-014.xsl"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   588
         <param name="static-param" static="yes" as="xs:integer" select="111" />
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   589
      </test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   590
      <result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   591
         <error code="XTSE0020" />
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   592
      </result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   593
   </test-case>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   594
   
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   595
   <test-case name="static-015">
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   596
      <description>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   597
         Static param with version attribute set, forward and backward compat behavior has no effect.
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   598
      </description>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   599
      <keywords>static-variable forward-compatbility backward-compatibility</keywords>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   600
      <created by="Abel Braaksma" on="2015-03-10"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   601
      <dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   602
         <spec value="XSLT30+"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   603
      </dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   604
      <test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   605
         <stylesheet file="static-015.xsl"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   606
         <param name="static-param1" static="yes" select="123" />
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   607
         <param name="static-param2" static="yes" select="456" />
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   608
         <param name="static-param3" static="yes" select="789" />
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   609
      </test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   610
      <result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   611
         <assert-string-value>123456789</assert-string-value>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   612
      </result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   613
   </test-case>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   614
   
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   615
   <test-case name="static-016">
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   616
      <description>
893
d42d1074b77a Some fixes on the new static param tests
abraaksm
parents: 879
diff changeset
   617
         Static param with visibility attribute set (this was allowed in earlier drafts)
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   618
      </description>
893
d42d1074b77a Some fixes on the new static param tests
abraaksm
parents: 879
diff changeset
   619
      <keywords>static-variable visibility err:XTSE0090</keywords>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   620
      <created by="Abel Braaksma" on="2015-03-10"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   621
      <dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   622
         <spec value="XSLT30+"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   623
      </dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   624
      <test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   625
         <stylesheet file="static-016.xsl"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   626
         <param name="static-param" static="yes" as="xs:string" select="'Private visibility'" />
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   627
      </test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   628
      <result>
893
d42d1074b77a Some fixes on the new static param tests
abraaksm
parents: 879
diff changeset
   629
         <error code="XTSE0090" />
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   630
      </result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   631
   </test-case>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   632
   
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   633
   <test-case name="static-017">
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   634
      <description>
893
d42d1074b77a Some fixes on the new static param tests
abraaksm
parents: 879
diff changeset
   635
         Static param with visibility attribute set to a previously invalid value (this used to raise XTSE0020)
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   636
      </description>
893
d42d1074b77a Some fixes on the new static param tests
abraaksm
parents: 879
diff changeset
   637
      <keywords>static-variable visibility ERR:XTSE0090</keywords>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   638
      <created by="Abel Braaksma" on="2015-03-10"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   639
      <dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   640
         <spec value="XSLT30+"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   641
      </dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   642
      <test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   643
         <stylesheet file="static-017.xsl"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   644
      </test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   645
      <result>
893
d42d1074b77a Some fixes on the new static param tests
abraaksm
parents: 879
diff changeset
   646
         <error code="XTSE0090" />
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   647
      </result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   648
   </test-case>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   649
   
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   650
   <test-case name="static-018">
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   651
      <description>
893
d42d1074b77a Some fixes on the new static param tests
abraaksm
parents: 879
diff changeset
   652
         Static param with invalid value "YES" for the static attribute
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   653
      </description>
893
d42d1074b77a Some fixes on the new static param tests
abraaksm
parents: 879
diff changeset
   654
      <keywords>static-variable err:XTSE0020</keywords>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   655
      <created by="Abel Braaksma" on="2015-03-10"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   656
      <dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   657
         <spec value="XSLT30+"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   658
      </dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   659
      <test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   660
         <stylesheet file="static-018.xsl"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   661
      </test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   662
      <result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   663
         <error code="XTSE0020" />
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   664
      </result>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   665
   </test-case>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   666
   
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   667
   <test-case name="static-019">
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   668
      <description>
893
d42d1074b77a Some fixes on the new static param tests
abraaksm
parents: 879
diff changeset
   669
         Static param referencing itself in the use-when attribute, error scenario.
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   670
      </description>
893
d42d1074b77a Some fixes on the new static param tests
abraaksm
parents: 879
diff changeset
   671
      <keywords>static-variable err:XPST0008</keywords>
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   672
      <created by="Abel Braaksma" on="2015-03-10"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   673
      <dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   674
         <spec value="XSLT30+"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   675
      </dependencies>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   676
      <test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   677
         <stylesheet file="static-019.xsl"/>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   678
      </test>
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   679
      <result>
893
d42d1074b77a Some fixes on the new static param tests
abraaksm
parents: 879
diff changeset
   680
         <error code="XPST0008" />
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   681
      </result>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   682
   </test-case>
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   683
   
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   684
879
94a05736e162 More static param tests
abraaksm
parents: 877
diff changeset
   685
871
ce8988346126 Adding some trivial static param tests and static param error scenarios
abraaksm
parents:
diff changeset
   686
</test-set>