tests/insn/try/_try-test-set.xml
author Michael Kay <mike@saxonica.com>
Wed, 13 Jun 2018 12:37:24 +0100
changeset 1856 067c1e8d801d
parent 1306 cf6c3ab45196
child 1881 276745f9d5b5
permissions -rw-r--r--
Regression test for saxon bug: $err:code within a predicate
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
     2
<test-set xmlns="http://www.w3.org/2012/10/xslt-test-catalog" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2012/10/xslt-test-catalog ../../../admin/catalog-schema.xsd" name="try">
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     3
   <description>Tests try</description>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     4
   <environment name="try020">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     5
      <source role="." file="try020.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     6
      <source file="try020xpath.xml" uri="try020xpath.xml"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     7
   </environment>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     8
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     9
   <test-case name="try-001">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    10
      <description>Simple test of xsl:try</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
    11
      <keywords>xsl:try error-handling generic-catch-clause FOAR0001</keywords>
952
b1368ff36771 Made try/catch tests non schema-aware
abraaksm
parents: 515
diff changeset
    12
      <created by="Michael Kay" on="2012-11-07"/>      
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    13
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    14
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    15
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    16
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    17
         <stylesheet file="try-001.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    18
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    19
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    20
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    21
         <assert-xml><![CDATA[<o>divide by zero</o>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    22
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    23
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    24
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    25
   <test-case name="try-002">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    26
      <description>Test of xsl:try as a higher-order function</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
    27
      <keywords>xsl:try error-handling generic-catch-clause $err:code $err:module $err:line-number $err:description FORG0001</keywords>
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
    28
      <created by="Michael Kay" on="2012-11-07"/>
1306
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    29
      <modified by="Abel Braaksma" on="2015-04-19" change="Allow for outcome variants with and without lineinfo and module info"/>
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    30
      <modified by="Michael Kay" on="2016-03-23" change="Further attempt to improve interoperability"/>      
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    31
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    32
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    33
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    34
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    35
         <stylesheet file="try-002.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    36
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    37
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    38
      <result>
1306
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    39
         <all-of xmlns:err="http://www.w3.org/2005/xqt-errors">
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    40
            <assert>/o/err:error/@code = "err:FOAR0001"</assert>
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    41
            <assert>/o/err:error/message[contains(lower-case(.), 'divi')]</assert>
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    42
            <assert>/o/err:error/message[contains(lower-case(.), 'by zero')]</assert>
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    43
            <assert>/o/err:error/@line = ("17", "")</assert>
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    44
            <assert>/o/err:error/@module[. = "" or contains(., "try-002.xsl")]</assert>
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    45
         </all-of>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    46
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    47
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    48
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    49
   <test-case name="try-003">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    50
      <description>Test xsl:try rethrowing the exception</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
    51
      <keywords>_IMPROVE:cleanup-redundant-code fn:error xsl:try error-handling generic-catch-clause specific-catch-clause FORG0001 $err:code $err:line-number $err:value</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    52
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    53
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    54
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    55
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    56
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    57
         <stylesheet file="try-003.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    58
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    59
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    60
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    61
         <error code="FOAR0001"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    62
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    63
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    64
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    65
   <test-case name="try-004">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    66
      <description>Use xsl:try to catch a validation error. Should not report the error.</description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
    67
      <keywords>stylesheet-function XTTE1540 xsl:import-schema xsl:try error-handling generic-catch-clause $err:code $err:module $err:line-number $err:description _WRONG:not-sure-test-is-correct xsl:function fn:boolean _IMPROVE:cannot-test-error-variables</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    68
      <created by="Michael Kay" on="2012-11-07"/>
1306
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    69
      <modified by="Michael Kay" on="2016-03-23" change="Add dependency on schema awareness"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    70
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    71
         <spec value="XSLT30+"/>
1306
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    72
         <feature value="schema_aware"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    73
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    74
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    75
         <stylesheet file="try-004.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    76
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    77
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    78
      <result>
40
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
    79
         <assert-xml><![CDATA[<o><validation-error><err:error xmlns:err="http://www.w3.org/2005/xqt-errors" code="err:XTTE1540"
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
    80
                 module="try-004.xsl"
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
    81
                 line="0"><message>true</message></err:error></validation-error></o>]]></assert-xml>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    82
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    83
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    84
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    85
   <test-case name="try-005">
40
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
    86
      <description>
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
    87
         Show xsl:try around element creation doesn't catch an error just because the element isn't valid 
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
    88
         in the content model of its parent
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
    89
      </description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
    90
      <keywords>_WRONG:not-sure-test-is-correct stylesheet-function xsl:import-schema xsl:try error-handling generic-catch-clause $err:code $err:module $err:line-number $err:description xsl:function</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    91
      <created by="Michael Kay" on="2012-11-07"/>
1306
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    92
      <modified by="Michael Kay" on="2016-03-23" change="Add dependency on schema awareness"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    93
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    94
         <spec value="XSLT30+"/>
1306
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
    95
         <feature value="schema_aware"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    96
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    97
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    98
         <stylesheet file="try-005.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    99
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   100
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   101
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   102
         <error code="XTTE1540"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   103
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   104
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   105
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   106
   <test-case name="try-006">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   107
      <description>xsl:try element, simple case</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
   108
      <keywords>FOAR0001 xsl:try error-handling generic-catch-clause</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   109
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   110
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   111
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   112
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   113
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   114
         <stylesheet file="try-006.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   115
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   116
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   117
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   118
         <assert-xml><![CDATA[<out>Infinity</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   119
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   120
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   121
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   122
   <test-case name="try-007">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   123
      <description>xsl:try element, catch a specific error</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
   124
      <keywords>xsl:try error-handling generic-catch-clause specific-catch-clause FOAR0001</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   125
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   126
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   127
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   128
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   129
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   130
         <stylesheet file="try-007.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   131
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   132
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   133
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   134
         <assert-xml><![CDATA[<out>Infinity</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   135
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   136
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   137
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   138
   <test-case name="try-008">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   139
      <description>xsl:try element, catch a specific error</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
   140
      <keywords>xsl:try error-handling generic-catch-clause specific-catch-clause FOAR9876 FOAR0001</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   141
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   142
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   143
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   144
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   145
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   146
         <stylesheet file="try-008.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   147
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   148
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   149
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   150
         <assert-xml><![CDATA[<out>Infinity</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   151
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   152
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   153
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   154
   <test-case name="try-009">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   155
      <description>xsl:try element, catch several errors</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
   156
      <keywords>xsl:try error-handling generic-catch-clause specific-catch-clause FOAR9876 err:FOAR0001</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   157
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   158
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   159
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   160
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   161
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   162
         <stylesheet file="try-009.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   163
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   164
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   165
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   166
         <assert-xml><![CDATA[<out>Infinity</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   167
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   168
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   169
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   170
   <test-case name="try-010">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   171
      <description>xsl:try element, use sequence constructor</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
   172
      <keywords>xsl:try error-handling generic-catch-clause specific-catch-clause FOAR9876 err:FOAR0001</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   173
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   174
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   175
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   176
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   177
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   178
         <stylesheet file="try-010.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   179
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   180
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   181
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   182
         <assert-xml><![CDATA[<out test="Infinity"/>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   183
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   184
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   185
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   186
   <test-case name="try-011">
205
9299ebef1307 Remove gratuitous use of Saxon namespace
Michael Kay <mike@saxonica.com>
parents: 188
diff changeset
   187
      <description>Error: variable declared in xsl:try is not visible with xsl:catch</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
   188
      <keywords>XPST0008 variable-scope xsl:try error-handling generic-catch-clause specific-catch-clause</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   189
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   190
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   191
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   192
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   193
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   194
         <stylesheet file="try-011.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   195
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   196
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   197
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   198
         <error code="XPST0008"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   199
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   200
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   201
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   202
   <test-case name="try-012">
992
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   203
      <description>element-available on xsl:try/catch</description>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   204
      <keywords>fn:element-available xsl:try xsl:catch</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   205
      <created by="Michael Kay" on="2012-11-07"/>
998
c5740027f798 All metadata conforms with catalog schema (test catalog-001)
Michael Kay <mike@saxonica.com>
parents: 992
diff changeset
   206
      <modified by="Michael Kay" on="2015-06-29" change="spec of element-available() has changed in 3.0"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   207
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   208
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   209
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   210
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   211
         <stylesheet file="try-012.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   212
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   213
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   214
      <result>
992
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   215
         <assert-xml><![CDATA[<out try="true" catch="true"/>]]></assert-xml>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   216
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   217
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   218
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   219
   <test-case name="try-013">
992
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   220
      <description>element-available on xsl:try/catch in XSLT 2.0</description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
   221
      <keywords>fn:element-available xsl:try xsl:catch 2.0-only-behavior</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   222
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   223
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   224
         <spec value="XSLT20"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   225
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   226
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   227
         <stylesheet file="try-013.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   228
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   229
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   230
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   231
         <assert-xml><![CDATA[<out try="false" catch="false"/>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   232
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   233
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   234
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   235
   <test-case name="try-014">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   236
      <description>xsl:fallback with xsl:try in XSLT 3.0</description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
   237
      <keywords>_WRONG:incorrect-dependency xsl:fallback xsl:try error-handling generic-catch-clause no-error-inside-try</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   238
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   239
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   240
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   241
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   242
      <test>
72
c638a1ff6993 remove indent="yes" from tests using assert-xml
Michael Kay <mike@saxonica.com>
parents: 40
diff changeset
   243
         <stylesheet file="try-014.xsl"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   244
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   245
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   246
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   247
         <assert-xml><![CDATA[<out>4</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   248
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   249
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   250
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   251
   <test-case name="try-015">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   252
      <description>xsl:fallback with xsl:try in XSLT 2.0</description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
   253
      <keywords>_WRONG:incorrect-dependency 2.0-only-behavior forwards-compatibility-mode xsl:fallback xsl:try error-handling generic-catch-clause no-error-inside-try</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   254
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   255
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   256
         <spec value="XSLT20"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   257
         <feature value="schema_aware" satisfied="false"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   258
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   259
      <test>
72
c638a1ff6993 remove indent="yes" from tests using assert-xml
Michael Kay <mike@saxonica.com>
parents: 40
diff changeset
   260
         <stylesheet file="try-014.xsl"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   261
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   262
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   263
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   264
         <assert-xml><![CDATA[<out>5</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   265
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   266
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   267
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   268
   <test-case name="try-016">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   269
      <description>Invalid child of xsl:try in XSLT 3.0</description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
   270
      <keywords>_WRONG:incorrect-dependency xsl:fallback xsl:try error-handling generic-catch-clause no-error-inside-try</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   271
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   272
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   273
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   274
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   275
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   276
         <stylesheet file="try-016.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   277
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   278
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   279
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   280
         <assert-xml><![CDATA[<out>4</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   281
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   282
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   283
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   284
   <test-case name="try-017">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   285
      <description>Invalid child of xsl:try in XSLT 2.0 (caught by xsl:fallback) (same test as try016 but run under XSLT 2.0)</description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
   286
      <keywords>_WRONG:incorrect-dependency forwards-compatibility-mode xsl:fallback xsl:try error-handling generic-catch-clause no-error-inside-try</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   287
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   288
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   289
         <spec value="XSLT20"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   290
         <feature value="schema_aware" satisfied="false"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   291
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   292
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   293
         <stylesheet file="try-017.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   294
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   295
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   296
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   297
         <assert-xml><![CDATA[<out>5</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   298
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   299
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   300
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   301
   <test-case name="try-018">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   302
      <description>xsl:catch with references to error variables in body</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
   303
      <keywords>_IMPROVE:cannot-test-error-variables xsl:try error-handling generic-catch-clause $err:code $err:description $err:value $err:module $err:line-number $err:column-number FODC0002</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   304
      <created by="Michael Kay" on="2012-11-07"/>
424
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   305
      <modified by="Michael Kay" on="2014-04-28" change="reproducible results"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   306
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   307
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   308
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   309
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   310
         <stylesheet file="try-018.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   311
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   312
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   313
      <result>
424
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   314
         <all-of>
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   315
           <assert>/out/code[@ns="http://www.w3.org/2005/xqt-errors" and @local="FODC0002"]</assert>
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   316
           <assert>/out/description[contains(., 'try-018-rubbish.xml')]</assert>
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   317
           <assert>/out/module[ends-with(., 'try-018.xsl')]</assert>
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   318
           <assert>/out/line = "11"</assert>
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   319
         </all-of>  
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   320
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   321
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   322
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   323
   <test-case name="try-019">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   324
      <description>xsl:catch with references to error variables in select attribute</description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
   325
      <keywords>_WRONG:incorrect-dependency _IMPROVE:cannot-test-error-variables FODC0002 xsl:try error-handling generic-catch-clause $err:column-number</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   326
      <created by="Michael Kay" on="2012-11-07"/>
424
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   327
      <modified by="Michael Kay" on="2014-04-28" change="reproducible results"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   328
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   329
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   330
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   331
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   332
         <stylesheet file="try-019.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   333
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   334
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   335
      <result>
424
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   336
         <all-of>
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   337
           <assert>contains(/out, "FODC0002")</assert>
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   338
           <assert>contains(/out, 'rubbish.xml')</assert>
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   339
           <assert>contains(/out, 'try-019.xsl')</assert>
176b15b7cafd Reproducible results for try-018 and try-019
Michael Kay <mike@saxonica.com>
parents: 302
diff changeset
   340
           <assert>contains(/out, '#11#')</assert>
426
6eab38069622 Fix catalog schema validity and various tests
Michael Kay <mike@saxonica.com>
parents: 424
diff changeset
   341
         </all-of>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   342
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   343
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   344
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   345
   <test-case name="try-020">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   346
      <description>xsl:result-document within xsl:try which throws a division by zero error</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
   347
      <keywords>_IMPROVE:xsl:result-document-href-dependency FOAR0001 xsl:result-document xsl:try error-handling generic-catch-clause</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   348
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   349
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   350
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   351
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   352
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   353
         <stylesheet file="try-020.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   354
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   355
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   356
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   357
         <assert-xml><![CDATA[<output xmlns:xs="http://www.w3.org/2001/XMLSchema"><ERROR message="Division by 0 error caught!"/></output>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   358
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   359
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   360
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   361
   <test-case name="try-021">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   362
      <description>xsl:result-document within xsl:try</description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
   363
      <keywords>_WRONG:incorrect-dependency _IMPROVE:cannot-test-error-variables XTDE1490 fn:boolean xsl:result-document xsl:try error-handling generic-catch-clause $err:code $err:module $err:line-number $err:description</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   364
      <created by="O'Neil Delpratt" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   365
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   366
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   367
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   368
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   369
         <stylesheet file="try-021.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   370
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   371
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   372
      <result>
40
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
   373
         <assert-xml><![CDATA[<err:error xmlns:err="http://www.w3.org/2005/xqt-errors"
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
   374
           code="err:XTDE1490"
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
   375
           module="try-021.xsl"
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
   376
           line="15"><message>true</message></err:error>]]></assert-xml>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   377
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   378
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   379
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   380
   <test-case name="try-022">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   381
      <description>xsl:result-document within xsl:try, which catches a division by zero error in second result-document</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
   382
      <keywords>FOAR0001 _IMPROVE:cannot-test-error-variables xsl:result-document xsl:try error-handling generic-catch-clause $err:code $err:module $err:line-number $err:description</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   383
      <created by="O'Neil Delpratt" on="2012-11-07"/>
163
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   384
      <modified by="Michael Kay" on="2013-01-31" change="restructure the test assertions"/>
1306
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
   385
      <modified by="Michael Kay" on="2016-03-23" change="improve the test assertions"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   386
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   387
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   388
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   389
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   390
         <stylesheet file="try-022.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   391
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   392
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   393
      <result>
163
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   394
         <all-of>
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   395
           <assert>/result/*:error[@code="err:FOAR0001" and @module="try-022.xsl" and @line="21"]</assert>
1306
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
   396
           <assert>contains(/result/*:error/message, "zero")</assert>
163
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   397
           <assert>/result/output = "main document"</assert>
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   398
           <assert-result-document uri="try-022-1.out">
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   399
             <assert>/output</assert>
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   400
           </assert-result-document>
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   401
         </all-of>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   402
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   403
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   404
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   405
   <test-case name="try-023">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   406
      <description>xsl:try within xsl:result-document, within xsl:try</description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
   407
      <keywords>_WRONG:incorrect-dependency no-error-inside-try xsl:result-document xsl:try error-handling generic-catch-clause $err:code $err:module $err:line-number $err:description</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   408
      <created by="O'Neil Delpratt" on="2012-11-07"/>
163
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   409
      <modified by="Michael Kay" on="2013-01-31" change="restructure the test assertions"/>
188
e5e0ecd20f92 Fixes to tests try-023 and try-024
Michael Kay <mike@saxonica.com>
parents: 163
diff changeset
   410
      <modified by="Michael Kay" on="2013-04-05" change="further restructure the test assertions"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   411
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   412
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   413
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   414
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   415
         <stylesheet file="try-023.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   416
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   417
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   418
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   419
         <all-of>
163
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   420
            <assert-result-document uri="try023.out">
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   421
            	<assert>/output = "main document"</assert>
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   422
            </assert-result-document>
cbd80750a2ba Improve assertions for tests -022, -023
Michael Kay <mike@saxonica.com>
parents: 72
diff changeset
   423
            <assert-result-document uri="try023_1.out">
188
e5e0ecd20f92 Fixes to tests try-023 and try-024
Michael Kay <mike@saxonica.com>
parents: 163
diff changeset
   424
               <assert>/output/output/note = "secondary document written"</assert>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   425
            </assert-result-document>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   426
         </all-of>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   427
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   428
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   429
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   430
   <test-case name="try-024">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   431
      <description>xsl:try within xsl:result-document, within xsl:try, which catches a division by zero error in inner result-document</description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
   432
      <keywords>FOAR0001 complex-use-case _IMPROVE:cannot-test-error-variables xsl:result-document xsl:try error-handling generic-catch-clause $err:code $err:module $err:line-number $err:description</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   433
      <created by="O'Neil Delpratt" on="2012-11-07"/>
188
e5e0ecd20f92 Fixes to tests try-023 and try-024
Michael Kay <mike@saxonica.com>
parents: 163
diff changeset
   434
      <modified by="Michael Kay" on="2013-04-05" change="restructure the test assertions"/>
1306
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
   435
      <modified by="Michael Kay" on="2016-03-23" change="improve the test assertions"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   436
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   437
         <spec value="XSLT30+"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   438
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   439
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   440
         <stylesheet file="try-024.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   441
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   442
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   443
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   444
         <all-of>
188
e5e0ecd20f92 Fixes to tests try-023 and try-024
Michael Kay <mike@saxonica.com>
parents: 163
diff changeset
   445
            <assert-result-document uri="try024.out">
e5e0ecd20f92 Fixes to tests try-023 and try-024
Michael Kay <mike@saxonica.com>
parents: 163
diff changeset
   446
               <assert>/output = "main document"</assert>
e5e0ecd20f92 Fixes to tests try-023 and try-024
Michael Kay <mike@saxonica.com>
parents: 163
diff changeset
   447
            </assert-result-document>   
e5e0ecd20f92 Fixes to tests try-023 and try-024
Michael Kay <mike@saxonica.com>
parents: 163
diff changeset
   448
            <assert-result-document uri="try024_1.out">
e5e0ecd20f92 Fixes to tests try-023 and try-024
Michael Kay <mike@saxonica.com>
parents: 163
diff changeset
   449
               <all-of>
e5e0ecd20f92 Fixes to tests try-023 and try-024
Michael Kay <mike@saxonica.com>
parents: 163
diff changeset
   450
                  <assert>/output/output/note = "secondary document written"</assert>
e5e0ecd20f92 Fixes to tests try-023 and try-024
Michael Kay <mike@saxonica.com>
parents: 163
diff changeset
   451
                  <assert>/output/output/*:error/@code[contains(.,"FOAR0001")]</assert>
1306
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
   452
                  <assert>contains(/output/output/*:error/message, "zero")</assert>
188
e5e0ecd20f92 Fixes to tests try-023 and try-024
Michael Kay <mike@saxonica.com>
parents: 163
diff changeset
   453
               </all-of>   
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   454
            </assert-result-document>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   455
         </all-of>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   456
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   457
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   458
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   459
   <test-case name="try-025">
40
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
   460
      <description>Invalid child of xsl:try in XSLT 2.0 (not caught by xsl:fallback) (same test as try-016 but run under XSLT 2.0)</description>
954
1ba6a77ebdb7 try-002, allow for result with or without lineinfo and module info
abraaksm
parents: 953
diff changeset
   461
      <keywords>2.0-only-behavior XTSE0010 xsl:fallback xsl:try error-handling generic-catch-clause</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   462
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   463
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   464
         <spec value="XSLT20"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   465
         <feature value="schema_aware" satisfied="false"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   466
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   467
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   468
         <stylesheet file="try-025.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   469
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   470
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   471
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   472
         <error code="XTSE0010"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   473
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   474
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   475
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   476
   <test-case name="try-026">
40
5a7d98a11eba Tidy up tests in sets attribute-set, namespace, try, bug.
Michael Kay <mike@saxonica.com>
parents: 1
diff changeset
   477
      <description>Invalid child of xsl:try in XSLT 2.0 (caught by xsl:fallback) (same test as try-017 but specifies version="3.0" at the instruction level)</description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
   478
      <keywords>version-attribute forwards-compatibility-mode xsl:fallback xsl:try error-handling generic-catch-clause</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   479
      <created by="Michael Kay" on="2012-11-07"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   480
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   481
         <spec value="XSLT20"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   482
         <feature value="schema_aware" satisfied="false"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   483
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   484
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   485
         <stylesheet file="try-026.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   486
         <initial-template name="main"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   487
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   488
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   489
         <assert-xml><![CDATA[<out>5</out>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   490
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   491
   </test-case>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   492
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   493
   <test-case name="try-027">
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   494
      <description>xsl:evaluate within xsl:try</description>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
   495
      <keywords>xsl:evaluate _IMPROVE:cleanup-test xsl:try error-handling generic-catch-clause $err:description</keywords>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   496
      <created by="Toshihito Makita" on="2012-11-07"/>
1306
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
   497
      <modified by="Michael Kay" on="2016-03-23" change="add dependency on dynamic evaluation"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   498
      <environment ref="try020"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   499
      <dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   500
         <spec value="XSLT30+"/>
1306
cf6c3ab45196 Improve interoperability of try/catch tests
Michael Kay <mike@saxonica.com>
parents: 998
diff changeset
   501
         <feature value="dynamic_evaluation"/>
1
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   502
      </dependencies>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   503
      <test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   504
         <stylesheet file="try-027.xsl"/>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   505
      </test>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   506
      <result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   507
         <assert-xml><![CDATA[<output xmlns:err="http://www.w3.org/2005/xqt-errors"/>]]></assert-xml>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   508
      </result>
9fa075f0bb80 Initial commit of converted tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   509
   </test-case>
991
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   510
   
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   511
   <test-case name="try-028">
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   512
      <description>error in evaluating global variable is not caught</description>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   513
      <keywords>xsl:try</keywords>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   514
      <created by="Michael Kay" on="2015-06-29"/>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   515
      <dependencies>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   516
         <spec value="XSLT30+"/>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   517
      </dependencies>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   518
      <test>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   519
         <stylesheet file="try-028.xsl"/>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   520
         <initial-template name="main"/>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   521
      </test>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   522
      <result>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   523
         <error code="FOAR0001"/>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   524
      </result>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   525
   </test-case>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   526
   
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   527
    <test-case name="try-029">
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   528
      <description>error in evaluating local variable is not caught</description>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   529
      <keywords>xsl:try</keywords>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   530
      <created by="Michael Kay" on="2015-06-29"/>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   531
      <dependencies>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   532
         <spec value="XSLT30+"/>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   533
      </dependencies>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   534
      <test>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   535
         <stylesheet file="try-029.xsl"/>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   536
         <initial-template name="main"/>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   537
      </test>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   538
      <result>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   539
         <error code="FOAR0001"/>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   540
      </result>
92f2ab138d68 Add tests for failures accessing variables in try/catch
Michael Kay <mike@saxonica.com>
parents: 954
diff changeset
   541
   </test-case>
992
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   542
   
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   543
   <test-case name="try-030">
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   544
      <description>error in evaluating local variable is not caught</description>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   545
      <keywords>xsl:try</keywords>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   546
      <created by="Michael Kay" on="2015-06-29"/>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   547
      <dependencies>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   548
         <spec value="XSLT30+"/>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   549
      </dependencies>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   550
      <test>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   551
         <stylesheet file="try-030.xsl"/>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   552
         <initial-template name="main"/>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   553
      </test>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   554
      <result>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   555
         <error code="FOAR0001"/>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   556
      </result>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   557
   </test-case>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   558
   
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   559
   <test-case name="try-031">
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   560
      <description>error in evaluating local variable is not caught</description>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   561
      <keywords>xsl:try</keywords>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   562
      <created by="Michael Kay" on="2015-06-29"/>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   563
      <environment ref="try020"/>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   564
      <dependencies>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   565
         <spec value="XSLT30+"/>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   566
      </dependencies>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   567
      <test>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   568
         <stylesheet file="try-031.xsl"/>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   569
         <initial-template name="main"/>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   570
      </test>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   571
      <result>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   572
         <error code="FOAR0001"/>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   573
      </result>
4a85730988dc Further xsl:try/catch tests with variables; and correct test that uses element-available
Michael Kay <mike@saxonica.com>
parents: 991
diff changeset
   574
   </test-case>
1856
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   575
   
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   576
   <test-case name="try-032">
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   577
      <description>Saxon bug 3791 - reference to err:code in a predicate</description>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   578
      <keywords>xsl:try</keywords>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   579
      <created by="Michael Kay" on="2018-05-25"/>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   580
      <dependencies>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   581
         <spec value="XSLT30+"/>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   582
      </dependencies>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   583
      <test>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   584
         <stylesheet file="try-032.xsl"/>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   585
         <initial-template name="main"/>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   586
      </test>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   587
      <result>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   588
         <assert>/out='test: Bang!'</assert>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   589
      </result>
067c1e8d801d Regression test for saxon bug: $err:code within a predicate
Michael Kay <mike@saxonica.com>
parents: 1306
diff changeset
   590
   </test-case>
515
0b6a94aaab3d Adding keywords for try-test-set
abraaksm
parents: 426
diff changeset
   591
</test-set>