tests/insn/analyze-string/_analyze-string-test-set.xml
author Michael Kay <mike@saxonica.com>
Sun, 16 Sep 2018 14:54:41 +0100
changeset 1894 5aca602b9d58
parent 1850 2d943e2bde09
child 1926 59acff18e7c5
permissions -rw-r--r--
New regex test from a Saxon bug report
200
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     2
<test-set xmlns:xs="http://www.w3.org/2001/XMLSchema"
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     3
          xmlns="http://www.w3.org/2012/10/xslt-test-catalog"
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     4
          name="analyze-string">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     5
   <description>Tests regex</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     6
   <environment name="regex001">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     7
      <source role=".">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     8
         <content><![CDATA[<doc>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     9
Mary had a little lamb
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    10
Its fleece was black as soot
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    11
And everywhere that Mary went
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    12
It put its sooty foot
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    13
</doc>]]></content>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    14
      </source>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    15
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    16
   <environment name="regex002">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    17
      <source role=".">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    18
         <content><![CDATA[<doc/>]]></content>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    19
      </source>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    20
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    21
   <environment name="regex006">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    22
      <source role="." file="analyze-string-006.xml"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    23
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    24
   
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    25
   <environment name="regex009">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    26
      <source role=".">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    27
         <content><![CDATA[<doc><str1>hello&#x0A;world</str1></doc>]]></content>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    28
      </source>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    29
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    30
   <environment name="regex010">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    31
      <source role="." file="analyze-string-010.xml"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    32
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    33
   <environment name="regex011">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    34
      <source role=".">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    35
         <content><![CDATA[<doc>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    36
  <str1>aBcDeFgHiJkLmNoPq</str1>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    37
  <str2>abcdefGHIJklmnopq</str2>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    38
</doc>]]></content>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    39
      </source>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    40
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    41
   <environment name="regex012">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    42
      <source role=".">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    43
         <content><![CDATA[<poem author="Wilhem Busch">Kaum hat dies der Hahn gesehen,</poem>]]></content>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    44
      </source>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    45
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    46
   <environment name="regex013">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    47
      <source role=".">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    48
         <content><![CDATA[<poem author="Wilhem Busch">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    49
Kaum hat dies der Hahn gesehen,
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    50
Fangt er auch schon an zu krahen: 
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    51
Kikeriki! Kikikeriki!! 
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    52
Tak, tak, tak! - da kommen sie.</poem>]]></content>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    53
      </source>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    54
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    55
   <environment name="regex024">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    56
      <source role=".">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    57
         <content><![CDATA[<doc><date>23 March 2002</date></doc>]]></content>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    58
      </source>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    59
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    60
   <environment name="regex025">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    61
      <source role=".">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    62
         <content><![CDATA[<doc>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    63
  <str1>zzzaBcDeFgHiJkLmNoPq</str1>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    64
</doc>]]></content>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    65
      </source>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    66
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    67
   <environment name="regex030">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    68
      <source role="." file="analyze-string-030.xml"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    69
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    70
   <environment name="regex031">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    71
      <source role=".">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    72
         <content><![CDATA[<doc>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    73
  <str1>aBcDeFgHiJkLmNoPqzzzaBcDeFgHiJkLmNoPq</str1>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    74
</doc>]]></content>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    75
      </source>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    76
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    77
   <environment name="regex039">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    78
      <source role=".">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    79
         <content><![CDATA[<doc>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    80
  <str>a</str>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    81
  <str>b</str>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    82
  <str>banana</str>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    83
  <str>c</str>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    84
  <str>d</str>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    85
</doc>]]></content>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    86
      </source>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    87
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    88
   
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    89
   <environment name="regex905">
332
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
    90
      <source role="." file="analyze-string-905.xml"/>
200
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    91
   </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    92
   
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    93
   
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    94
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    95
   <test-case name="analyze-string-006">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    96
      <description>test xsl:analyze-string.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    97
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    98
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    99
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   100
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   101
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   102
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   103
         <stylesheet file="analyze-string-006.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   104
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   105
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   106
         <assert-xml><![CDATA[<out>|Mary had a littl[e] lamb|Its fl[e][e]c[e] was black as soot|And [e]v[e]rywh[e]r[e] that Mary w[e]nt|It put its sooty foot|</out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   107
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   108
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   109
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   110
   <test-case name="analyze-string-007">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   111
      <description>test xsl:analyze-string using multi-line mode.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   112
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   113
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   114
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   115
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   116
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   117
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   118
         <stylesheet file="analyze-string-007.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   119
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   120
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   121
         <all-of>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   122
            <assert>/out/p[1] = "Mary had a little lamb"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   123
            <assert>/out/p[2] = "Its fleece was black as soot"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   124
            <assert>/out/p[3] = "And everywhere that Mary went"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   125
            <assert>/out/p[4] = "It put its sooty foot"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   126
         </all-of>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   127
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   128
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   129
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   130
   <test-case name="analyze-string-008">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   131
      <description>test xsl:analyze-string using groups.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   132
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   133
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   134
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   135
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   136
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   137
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   138
         <stylesheet file="analyze-string-008.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   139
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   140
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   141
         <assert-xml><![CDATA[<out>|[Mary ()][had (had )]a [little ()][lamb|Its fleece ()]was b[lack as soot|And everywhere ()]that [Mary ()]went|It put its sooty foot|</out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   142
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   143
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   144
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   145
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   146
   <test-case name="analyze-string-012">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   147
      <description>test xsl:analyze-string with a pattern that doesn't match anything.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   148
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   149
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   150
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   151
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   152
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   153
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   154
         <stylesheet file="analyze-string-012.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   155
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   156
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   157
         <assert-xml><![CDATA[<out>|Mary had a little lamb|Its fleece was black as soot|And everywhere that Mary went|It put its sooty foot|</out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   158
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   159
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   160
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   161
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   162
   <test-case name="analyze-string-033">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   163
      <description>test position() and last() within xsl:analyze-string.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   164
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   165
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   166
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   167
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   168
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   169
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   170
         <stylesheet file="analyze-string-033.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   171
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   172
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   173
         <all-of>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   174
            <assert>deep-equal(/out/*/name(), ('non-match', 'match', 'non-match', 'match', 'match', 
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   175
               'non-match', 'match', 'non-match', 'match', 'non-match', 'match', 'non-match', 'match', 
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   176
               'non-match', 'match', 'non-match', 'match', 'non-match'))</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   177
            <assert>deep-equal(/out/*/@position/number(), (1 to 18))</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   178
            <assert>every $a in /out/*/@last/number() satisfies $a = 18</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   179
            <assert>//out/*[1] = "|Mary had a littl"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   180
            <assert>//out/*[2] = "e"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   181
            <assert>//out/*[3] = " lamb|Its fl"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   182
            <assert>//out/*[4] = "e"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   183
            <assert>//out/*[5] = "e"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   184
            <assert>//out/*[6] = "c"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   185
            <assert>//out/*[7] = "e"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   186
            <assert>//out/*[8] = " was black as soot|And "</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   187
            <assert>//out/*[9] = "e"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   188
            <assert>//out/*[10] = "v"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   189
            <assert>//out/*[11] = "e"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   190
            <assert>//out/*[12] = "rywh"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   191
            <assert>//out/*[13] = "e"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   192
            <assert>//out/*[14] = "r"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   193
            <assert>//out/*[15] = "e"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   194
            <assert>//out/*[16] = " that Mary w"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   195
            <assert>//out/*[17] = "e"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   196
            <assert>//out/*[18] = "nt|It put its sooty foot|"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   197
         </all-of>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   198
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   199
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   200
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   201
   <test-case name="analyze-string-034">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   202
      <description>test regex-group() is empty inside a stylesheet function.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   203
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   204
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   205
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   206
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   207
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   208
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   209
         <stylesheet file="analyze-string-034.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   210
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   211
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   212
         <assert-xml><![CDATA[<out>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   213
[()][()]a [()][()]was b[()]that [()]went
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   214
It put its sooty foot
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   215
</out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   216
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   217
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   218
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   219
   <test-case name="analyze-string-035">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   220
      <description>test xsl:analyze-string applied to empty sequence. Error in 2.0, allowed in 2.1 (bug 7976)</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   221
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   222
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   223
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   224
         <spec value="XSLT30+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   225
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   226
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   227
         <stylesheet file="analyze-string-035.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   228
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   229
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   230
         <assert-xml><![CDATA[<out/>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   231
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   232
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   233
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   234
   <test-case name="analyze-string-036">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   235
      <description>test xsl:analyze-string with 'q' flag. Error in 2.0, allowed in 3.0</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   236
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   237
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   238
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   239
         <spec value="XSLT30+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   240
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   241
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   242
         <stylesheet file="analyze-string-036.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   243
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   244
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   245
         <assert-xml><![CDATA[<out><n val="A"/><m val="."/><n val="A"/><m val="."/><n val="A"/><m val="."/><n val="A"/><m val="."/><n val="A"/></out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   246
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   247
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   248
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   249
   <test-case name="analyze-string-037">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   250
      <description>test xsl:analyze-string with non-capturing groups. Error in 2.0, allowed in 3.0</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   251
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   252
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   253
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   254
         <spec value="XSLT30+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   255
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   256
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   257
         <stylesheet file="analyze-string-037.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   258
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   259
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   260
         <assert-xml><![CDATA[<out><m g1="CD" g2="GH" g3="" g4=""/></out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   261
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   262
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   263
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   264
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   265
   <test-case name="analyze-string-042">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   266
      <description>ERR XTSE1130 - neither matching-substring nor non-matching-substring present.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   267
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   268
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   269
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   270
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   271
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   272
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   273
         <stylesheet file="analyze-string-042.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   274
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   275
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   276
         <error code="XTSE1130"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   277
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   278
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   279
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   280
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   281
   <test-case name="analyze-string-045">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   282
      <description>test xsl:analyze-string applied to empty sequence. Error in 2.0, allowed in 2.1 (bug 7976)</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   283
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   284
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   285
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   286
         <spec value="XSLT20"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   287
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   288
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   289
         <stylesheet file="analyze-string-045.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   290
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   291
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   292
         <error code="XPTY0004"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   293
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   294
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   295
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   296
   <test-case name="analyze-string-046">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   297
      <description>test xsl:analyze-string with 'q' flag. Error in 2.0, allowed in 2.1</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   298
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   299
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   300
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   301
         <spec value="XSLT20"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   302
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   303
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   304
         <stylesheet file="analyze-string-046.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   305
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   306
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   307
         <error code="XTDE1145"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   308
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   309
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   310
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   311
   <test-case name="analyze-string-047">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   312
      <description>test xsl:analyze-string with non-capturing groups. Error in 2.0, allowed in 2.1</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   313
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   314
      <environment ref="regex001"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   315
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   316
         <spec value="XSLT20"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   317
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   318
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   319
         <stylesheet file="analyze-string-047.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   320
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   321
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   322
         <error code="XTDE1140"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   323
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   324
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   325
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   326
   <test-case name="analyze-string-048">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   327
      <description>Testcase with xsl:analyze-string on a literal string where regex uses positional metacharacters ^ and $.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   328
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   329
      <environment ref="regex002"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   330
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   331
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   332
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   333
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   334
         <stylesheet file="analyze-string-048.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   335
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   336
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   337
         <assert-xml file="analyze-string-048.out"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   338
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   339
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   340
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   341
   <test-case name="analyze-string-049">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   342
      <description>Testcase with xsl:analyze-string on a literal string where @regex uses reluctant quantifiers.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   343
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   344
      <environment ref="regex002"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   345
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   346
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   347
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   348
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   349
         <stylesheet file="analyze-string-049.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   350
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   351
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   352
         <assert-xml><![CDATA[<out>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   353
<e1>b</e1>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   354
<E1>bbbb</E1>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   355
<E2>bbb</E2>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   356
<e3>b</e3>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   357
<E3>bbb</E3>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   358
<e4>bb</e4>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   359
<E4>bbb</E4>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   360
<E5>a</E5>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   361
<E6/></out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   362
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   363
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   364
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   365
   <test-case name="analyze-string-050">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   366
      <description>Testcase with xsl:analyze-string on a literal string where @regex uses backreferences. Verifies that backreferences match the exact string that was already matched by the capturing subexpressions they refer to and not just its pattern.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   367
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   368
      <environment ref="regex002"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   369
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   370
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   371
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   372
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   373
         <stylesheet file="analyze-string-050.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   374
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   375
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   376
         <assert-xml file="analyze-string-050.out"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   377
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   378
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   379
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   380
   <test-case name="analyze-string-051">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   381
      <description>Testcase with xsl:analyze-string where @regex matches several overlapping substrings of different length. Cases tested: @regex contains a greedy quantifier @regex contains a non-greedy quantifier @regex contains alternatives that both match different substrings</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   382
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   383
      <environment ref="regex002"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   384
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   385
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   386
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   387
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   388
         <stylesheet file="analyze-string-051.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   389
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   390
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   391
         <assert-xml><![CDATA[<out>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   392
<E1>b#</E1>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   393
<E2>b#na</E2>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   394
<E3>b#n#n#</E3>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   395
<E4>b#n#</E4></out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   396
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   397
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   398
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   399
   <test-case name="analyze-string-052">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   400
      <description>Testcase where the result from xsl:analyze-string is set as the value of a variable which is used for @select in another xsl:analyze-string element.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   401
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   402
      <environment ref="regex002"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   403
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   404
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   405
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   406
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   407
         <stylesheet file="analyze-string-052.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   408
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   409
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   410
         <assert-xml><![CDATA[<out><A>Ma*ha* a*la*</A><B>*!*!*!*!</B></out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   411
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   412
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   413
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   414
   <test-case name="analyze-string-053">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   415
      <description>Testcase with xsl:analyze-string where the value of @select is a the result of a function call.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   416
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   417
      <environment ref="regex002"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   418
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   419
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   420
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   421
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   422
         <stylesheet file="analyze-string-053.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   423
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   424
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   425
         <assert-xml><![CDATA[<out><E1>1#1</E1></out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   426
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   427
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   428
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   429
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   430
   <test-case name="analyze-string-063">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   431
      <description>Testcase with xsl:analyze-string on a literal string, node, context node(.), variable and a subsequence where @regex value is resolved at run-time.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   432
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   433
      <environment ref="regex006"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   434
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   435
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   436
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   437
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   438
         <stylesheet file="analyze-string-063.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   439
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   440
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   441
         <assert-xml file="analyze-string-063.out"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   442
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   443
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   444
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   445
   <test-case name="analyze-string-064">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   446
      <description>Testcase to verify that when @flags in xsl:analyze-string is omitted, the effect is the same as supplying a zero-length string.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   447
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   448
      <environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   449
         <source role=".">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   450
            <content><![CDATA[<doc><str1>Mary had a little lamb.</str1></doc>]]></content>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   451
         </source>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   452
      </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   453
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   454
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   455
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   456
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   457
         <stylesheet file="analyze-string-064.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   458
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   459
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   460
         <all-of>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   461
            <assert>/out/a = "*ry had* little lamb."</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   462
            <assert>/out/b = "*ry had* little lamb."</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   463
            <assert>/out/c = "*ry had* little lamb."</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   464
            <assert>/out/d = "*ry had* little lamb."</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   465
            <assert>/out/e = "*ry had* little lamb."</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   466
            <assert>/out/f = "*ry had* little lamb."</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   467
            <assert>/out/g = "*ry had* little lamb."</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   468
            <assert>/out/h = "*ry had* little lamb."</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   469
         </all-of>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   470
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   471
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   472
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   473
   <test-case name="analyze-string-065">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   474
      <description>Testcase with xsl:analyze-string using 'dot-all' mode (@flags is set to 's').</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   475
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   476
      <environment ref="regex009"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   477
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   478
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   479
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   480
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   481
         <stylesheet file="analyze-string-065.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   482
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   483
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   484
         <assert-xml><![CDATA[<out><E1>hello
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   485
world</E1><E2>*</E2></out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   486
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   487
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   488
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   489
   <test-case name="analyze-string-067">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   490
      <description>Testcase with xsl:analyze-string using multiline mode (@flags is set to 'm').</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   491
      <created by="XSLT Editors" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   492
      <environment ref="regex010"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   493
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   494
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   495
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   496
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   497
         <stylesheet file="analyze-string-067.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   498
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   499
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   500
         <assert-xml file="analyze-string-067.out"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   501
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   502
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   503
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   504
   <test-case name="analyze-string-069">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   505
      <description>Testcase with xsl:analyze-string using case-sensitive mode (@flags is set to 'i').</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   506
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   507
      <environment ref="regex011"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   508
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   509
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   510
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   511
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   512
         <stylesheet file="analyze-string-069.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   513
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   514
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   515
         <all-of>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   516
            <assert>/out/r[@name="str1"]/e1 = "aBcDeFgHiJkLmNoPq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   517
            <assert>/out/r[@name="str1"]/E1 = "aBcDeF!!!!kLmNoPq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   518
            <assert>/out/r[@name="str1"]/e2 = "aBcDeFgHiJkLmNoPq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   519
            <assert>/out/r[@name="str1"]/E2 = "aBcD1234567LmNoPq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   520
            <assert>/out/r[@name="str1"]/e3 = "aBcDeFgHiJkLmNoPq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   521
            <assert>/out/r[@name="str1"]/E3 = "aBcD#LmNoPq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   522
            <assert>/out/r[@name="str2"]/e1 = "abcdef!!!!klmnopq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   523
            <assert>/out/r[@name="str2"]/E1 = "abcdef!!!!klmnopq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   524
            <assert>/out/r[@name="str2"]/e2 = "abcdefGHIJklmnopq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   525
            <assert>/out/r[@name="str2"]/E2 = "abcd1234567lmnopq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   526
            <assert>/out/r[@name="str2"]/e3 = "abcdefGHIJklmnopq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   527
            <assert>/out/r[@name="str2"]/E3 = "abcd#lmnopq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   528
         </all-of>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   529
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   530
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   531
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   532
   <test-case name="analyze-string-070">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   533
      <description>Testcase with xsl:analyze-string using whitespace-ignore mode (@flags is set to 'x').</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   534
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   535
      <environment ref="regex012"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   536
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   537
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   538
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   539
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   540
         <stylesheet file="analyze-string-070.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   541
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   542
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   543
         <assert-xml><![CDATA[<out><E1>Kaum hat dies der Hahn gesehen,</E1><E2>* der Hahn gesehen,</E2></out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   544
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   545
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   546
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   547
   <test-case name="analyze-string-071">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   548
      <description>Testcase to verify that @flags in xsl:analyze-string can be used to set multiple modes simultaneously and repeats are allowed.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   549
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   550
      <environment ref="regex013"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   551
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   552
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   553
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   554
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   555
         <stylesheet file="analyze-string-071.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   556
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   557
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   558
         <assert-xml file="analyze-string-071.out"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   559
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   560
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   561
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   562
   <test-case name="analyze-string-072">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   563
      <description>Test of regex-group() with 3 existing groups that have found matches in the analyzed string.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   564
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   565
      <environment ref="regex024"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   566
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   567
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   568
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   569
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   570
         <stylesheet file="analyze-string-072.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   571
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   572
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   573
         <assert-xml><![CDATA[<out>2002-03-23</out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   574
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   575
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   576
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   577
   <test-case name="analyze-string-073">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   578
      <description>Test with regex-group(0) to verify that the returned substring is the whole value of @regex.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   579
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   580
      <environment ref="regex025"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   581
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   582
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   583
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   584
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   585
         <stylesheet file="analyze-string-073.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   586
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   587
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   588
         <assert-xml><![CDATA[<out>#aBcDeFgHiJkLmNoPq</out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   589
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   590
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   591
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   592
   <test-case name="analyze-string-074">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   593
      <description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   594
         Test to verify that the zero-length string is returned if there is no matched substring with the 
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   595
         number passed as an argument to regex-group().
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   596
      </description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   597
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   598
      <environment ref="regex025"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   599
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   600
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   601
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   602
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   603
         <stylesheet file="analyze-string-074.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   604
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   605
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   606
         <assert-xml><![CDATA[<out>#</out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   607
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   608
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   609
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   610
   <test-case name="analyze-string-075">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   611
      <description>Test to verify that the set of captured substring is set to an empty sequence inside xsl:non-matching-substring.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   612
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   613
      <environment ref="regex025"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   614
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   615
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   616
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   617
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   618
         <stylesheet file="analyze-string-075.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   619
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   620
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   621
         <assert-xml><![CDATA[<out>aBcDeFgHiJkLmNoPq</out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   622
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   623
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   624
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   625
   <test-case name="analyze-string-076">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   626
      <description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   627
         Use regex-group() inside @group-starting-with of xsl:for-each-group.
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   628
         Verify that the set of captured substrings is set to an empty sequence inside a pattern.
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   629
      </description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   630
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   631
      <environment ref="regex030"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   632
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   633
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   634
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   635
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   636
         <stylesheet file="analyze-string-076.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   637
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   638
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   639
         <all-of>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   640
            <assert>/out/empty[@id="non-match1"] = "zzz"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   641
            <assert>/out/empty[@id="match2-1"] = "string2string5string6string7"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   642
            <assert>/out/empty[@id="match2-2"] = "string2string5string6string7"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   643
            <assert>/out/empty[@id="non-match3"] = "HiJkLmNoPq"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   644
         </all-of>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   645
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   646
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   647
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   648
   <test-case name="analyze-string-077">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   649
      <description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   650
         Test to verify that the set of captured substrings is set to an empty sequence inside stylesheet function.
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   651
      </description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   652
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   653
      <environment ref="regex031"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   654
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   655
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   656
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   657
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   658
         <stylesheet file="analyze-string-077.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   659
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   660
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   661
         <assert-xml><![CDATA[<out>inside the function   zzz  inside the function </out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   662
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   663
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   664
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   665
   <test-case name="analyze-string-078">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   666
      <description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   667
         Test to verify that the value of current captured substrings is unaffected through a call to xsl:apply-templates.
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   668
      </description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   669
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   670
      <environment ref="regex031"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   671
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   672
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   673
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   674
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   675
         <stylesheet file="analyze-string-078.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   676
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   677
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   678
         <assert-xml><![CDATA[<out>azzza</out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   679
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   680
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   681
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   682
   <test-case name="analyze-string-079">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   683
      <description>Test to verify that the value of current captured substrings is unaffected through a call to xsl:call-template.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   684
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   685
      <environment ref="regex031"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   686
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   687
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   688
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   689
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   690
         <stylesheet file="analyze-string-079.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   691
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   692
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   693
         <assert-xml><![CDATA[<out>azzza</out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   694
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   695
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   696
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   697
   <test-case name="analyze-string-080">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   698
      <description>Test to verify that the value of current captured substrings is unaffected through a call to xsl:apply-imports.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   699
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   700
      <environment ref="regex031"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   701
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   702
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   703
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   704
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   705
         <stylesheet file="analyze-string-080.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   706
         <stylesheet file="analyze-string-080a.xsl" role="secondary"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   707
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   708
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   709
         <assert-xml><![CDATA[<out>azzza</out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   710
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   711
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   712
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   713
   <test-case name="analyze-string-081">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   714
      <description>Test to verify that the value of current captured substrings is unaffected through a call to xsl:next-match.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   715
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   716
      <environment ref="regex031"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   717
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   718
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   719
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   720
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   721
         <stylesheet file="analyze-string-081.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   722
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   723
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   724
         <assert-xml><![CDATA[<out>azzza</out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   725
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   726
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   727
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   728
   <test-case name="analyze-string-082">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   729
      <description>Test to verify that the value of current captured substring is unaffected by an expansion of named attribute sets.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   730
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   731
      <environment ref="regex031"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   732
      <!-- TODO: also uses regex082.xml -->
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   733
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   734
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   735
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   736
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   737
         <stylesheet file="analyze-string-082.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   738
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   739
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   740
         <assert-xml><![CDATA[<out><b size="12" weight="500">a</b>zzz<b size="12" weight="500">a</b></out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   741
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   742
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   743
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   744
   <test-case name="analyze-string-083">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   745
      <description>Testcase with xsl:analyze-string to test context item, position and size inside xsl:(non)-matching-substring.</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   746
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   747
      <environment ref="regex039"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   748
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   749
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   750
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   751
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   752
         <stylesheet file="analyze-string-083.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   753
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   754
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   755
         <all-of>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   756
            <assert>/out/*[1][self::non-match]/item = "b"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   757
            <assert>/out/*[1][self::non-match]/pos = "1"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   758
            <assert>/out/*[1][self::non-match]/size = "6"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   759
            <assert>/out/*[2][self::match]/item = "a"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   760
            <assert>/out/*[2][self::match]/pos = "2"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   761
            <assert>/out/*[2][self::match]/size = "6"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   762
            <assert>/out/*[3][self::non-match]/item = "n"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   763
            <assert>/out/*[3][self::non-match]/pos = "3"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   764
            <assert>/out/*[3][self::non-match]/size = "6"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   765
            <assert>/out/*[4][self::match]/item = "a"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   766
            <assert>/out/*[4][self::match]/pos = "4"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   767
            <assert>/out/*[4][self::match]/size = "6"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   768
            <assert>/out/*[5][self::non-match]/item = "n"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   769
            <assert>/out/*[5][self::non-match]/pos = "5"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   770
            <assert>/out/*[5][self::non-match]/size = "6"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   771
            <assert>/out/*[6][self::match]/item = "a"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   772
            <assert>/out/*[6][self::match]/pos = "6"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   773
            <assert>/out/*[6][self::match]/size = "6"</assert>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   774
         </all-of>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   775
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   776
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   777
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   778
   <test-case name="analyze-string-084">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   779
      <description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   780
         Test with regex-group() inside matching-substring with an argument coming from a node. 
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   781
         Absolute path must be used to reach the node.
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   782
      </description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   783
      <created by="Michael Kay" on="2012-10-30"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   784
      <environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   785
         <source role="." file="analyze-string-084.xml" uri="analyze-string-084.xml">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   786
            <description>Source file used both as initial context node and as argument to doc()</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   787
         </source>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   788
      </environment>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   789
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   790
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   791
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   792
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   793
         <stylesheet file="analyze-string-084.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   794
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   795
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   796
         <assert-xml><![CDATA[<out><p>this</p></out>]]></assert-xml>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   797
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   798
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   799
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   800
   <test-case name="analyze-string-085">
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   801
      <description>context item within matching-substring is not a node</description>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   802
      <created by="Michael Kay" on="2012-11-07"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   803
      <environment ref="regex905"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   804
      <dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   805
         <spec value="XSLT20+"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   806
      </dependencies>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   807
      <test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   808
         <stylesheet file="analyze-string-085.xsl"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   809
      </test>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   810
      <result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   811
         <error code="XPTY0020"/>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   812
      </result>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   813
   </test-case>
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   814
   
203
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   815
   <test-case name="analyze-string-090a">
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   816
      <description>regex matching zero-length string</description>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   817
      <created by="Michael Kay" on="2013-05-03"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   818
      <dependencies>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   819
         <spec value="XSLT20"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   820
      </dependencies>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   821
      <test>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   822
         <stylesheet file="analyze-string-090.xsl"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   823
         <initial-template name="main"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   824
      </test>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   825
      <result>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   826
         <error code="XTDE1150"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   827
      </result>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   828
   </test-case>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   829
   
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   830
   <test-case name="analyze-string-090b">
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   831
      <description>regex matching zero-length string</description>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   832
      <created by="Michael Kay" on="2013-05-03"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   833
      <dependencies>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   834
         <spec value="XSLT30+"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   835
      </dependencies>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   836
      <test>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   837
         <stylesheet file="analyze-string-090.xsl"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   838
         <initial-template name="main"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   839
      </test>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   840
      <result>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   841
         <all-of>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   842
           <assert>/out/a[@nr='2'] = '&#xa;Heading&#xa;'</assert>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   843
           <assert>/out/a[@nr='4'] = '&#xa;above is an empty line&#xa;'</assert>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   844
           <assert>/out/a[@nr='6'] = '&#xa;above is a line of three spaces&#xa;'</assert>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   845
           <assert>/out/a[@nr='8'] = '&#xa;above is a line containing a tab&#xa;'</assert>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   846
           <assert>count(/out/a) = 4</assert>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   847
         </all-of>  
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   848
      </result>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   849
   </test-case>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   850
   
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   851
   <test-case name="analyze-string-091a">
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   852
      <description>regex matching zero-length string</description>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   853
      <created by="Michael Kay" on="2013-05-03"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   854
      <dependencies>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   855
         <spec value="XSLT20"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   856
      </dependencies>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   857
      <test>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   858
         <stylesheet file="analyze-string-091.xsl"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   859
         <initial-template name="main"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   860
      </test>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   861
      <result>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   862
         <error code="XTDE1150"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   863
      </result>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   864
   </test-case>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   865
   
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   866
   <test-case name="analyze-string-091b">
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   867
      <description>regex matching zero-length string</description>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   868
      <created by="Michael Kay" on="2013-05-03"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   869
      <dependencies>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   870
         <spec value="XSLT30+"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   871
      </dependencies>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   872
      <test>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   873
         <stylesheet file="analyze-string-091.xsl"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   874
         <initial-template name="main"/>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   875
      </test>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   876
      <result>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   877
         <assert>/out='a b c d e f'</assert>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   878
      </result>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   879
   </test-case>
ab653cf566bd Add tests for analyze-string regex matching zero-length string
Michael Kay <mike@saxonica.com>
parents: 200
diff changeset
   880
   
215
7d6638055aff Fix bug 22364
Michael Kay <mike@saxonica.com>
parents: 204
diff changeset
   881
   <test-case name="analyze-string-092">
204
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   882
      <description>regex matching zero-length string</description>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   883
      <created by="Michael Kay" on="2013-05-03"/>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   884
      <dependencies>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   885
         <spec value="XSLT30+"/>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   886
      </dependencies>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   887
      <test>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   888
         <stylesheet file="analyze-string-092.xsl"/>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   889
         <initial-template name="main"/>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   890
      </test>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   891
      <result>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   892
         <all-of>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   893
            <assert>/out/col[1]='Ten Thousand'</assert>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   894
            <assert>/out/col[2]='10000'</assert>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   895
            <assert>/out/col[3]=''</assert>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   896
            <assert>/out/col[4]='10,000'</assert>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   897
            <assert>/out/col[5]='It''s "10 Grand", mister'</assert>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   898
            <assert>/out/col[6]='10K'</assert>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   899
            <assert>count(/out/col) = 6</assert>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   900
         </all-of>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   901
      </result>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   902
   </test-case>
39e9ffa95d0b Further analyze-string example matching ""
Michael Kay <mike@saxonica.com>
parents: 203
diff changeset
   903
   
332
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   904
   <test-case name="analyze-string-093">
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   905
      <description>matching-substring and non-matching-substring in wrong order</description>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   906
      <created by="Michael Kay" on="2013-12-09"/>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   907
      <dependencies>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   908
         <spec value="XSLT30+"/>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   909
      </dependencies>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   910
      <test>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   911
         <stylesheet file="analyze-string-093.xsl"/>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   912
         <initial-template name="main"/>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   913
      </test>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   914
      <result>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   915
         <error code="XTSE0010"/>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   916
      </result>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   917
   </test-case>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   918
   
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   919
   <test-case name="analyze-string-094">
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   920
      <description>xsl:fallback must come last</description>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   921
      <created by="Michael Kay" on="2013-12-09"/>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   922
      <dependencies>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   923
         <spec value="XSLT30+"/>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   924
      </dependencies>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   925
      <test>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   926
         <stylesheet file="analyze-string-094.xsl"/>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   927
         <initial-template name="main"/>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   928
      </test>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   929
      <result>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   930
         <error code="XTSE0010"/>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   931
      </result>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   932
   </test-case>
27832e43b757 Add tests for order of elements within xsl:analyze-string
Michael Kay <mike@saxonica.com>
parents: 215
diff changeset
   933
   
1163
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   934
   <test-case name="analyze-string-095">
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   935
      <description>Test of regex-group(), Saxon bug 2487 from Tomos Hillman</description>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   936
      <created by="Michael Kay" on="2013-12-09"/>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   937
      <dependencies>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   938
         <spec value="XSLT20+"/>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   939
      </dependencies>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   940
      <test>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   941
         <stylesheet file="analyze-string-095.xsl"/>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   942
         <initial-template name="main"/>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   943
      </test>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   944
      <result>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   945
         <all-of>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   946
            <assert>/out/one = ""</assert>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   947
            <assert>/out/two = ""</assert>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   948
            <assert>/out/three = "1949"</assert>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   949
         </all-of>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   950
      </result>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   951
   </test-case>
1c4b2ee7d64d New regex-group() test, Saxon bug 2487
Michael Kay <mike@saxonica.com>
parents: 332
diff changeset
   952
   
1448
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   953
   <test-case name="analyze-string-096">
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   954
      <description>Test of regex-group(), Saxon bug 2487 from Gerrit Imsieke</description>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   955
      <created by="Michael Kay" on="2016-09-21"/>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   956
      <dependencies>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   957
         <spec value="XSLT20+"/>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   958
      </dependencies>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   959
      <test>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   960
         <stylesheet file="analyze-string-096.xsl"/>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   961
         <initial-template name="main"/>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   962
      </test>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   963
      <result>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   964
         <assert>/out = '1:UV_STD_ 2:00000_ 3:00000 4:39000'</assert>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   965
      </result>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   966
   </test-case>
f59d529e682f Test changes, see individual details
Michael Kay <mike@saxonica.com>
parents: 1163
diff changeset
   967
   
1656
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   968
   <test-case name="analyze-string-097">
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   969
      <description>Test of analyze-string with non-capturing groups, Saxon bug 3211 from Henry Thompson</description>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   970
      <created by="Michael Kay" on="2017-04-27"/>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   971
      <dependencies>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   972
         <spec value="XSLT30+"/>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   973
      </dependencies>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   974
      <test>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   975
         <stylesheet file="analyze-string-097.xsl"/>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   976
         <initial-template name="main"/>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   977
      </test>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   978
      <result>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   979
         <assert-xml><![CDATA[<analyze-string-result xmlns="http://www.w3.org/2005/xpath-functions"
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   980
            ><match><group nr="4">SUM(</group></match
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   981
            ><match><group nr="8">A1</group></match
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   982
            ><match><group nr="10">:</group></match
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   983
            ><match><group nr="8">B2</group></match
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   984
            ><match><group nr="5">)</group></match
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   985
            ></analyze-string-result>]]></assert-xml>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   986
      </result>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   987
   </test-case>
a71003616587 New test case analyze-string-097 for Saxon bug 3211 from Henry Thompson
Michael Kay <mike@saxonica.com>
parents: 1448
diff changeset
   988
   
1850
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
   989
   <test-case name="analyze-string-098">
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
   990
      <description>Test of analyze-string where the same regex is used repeatedly: designed to exercise possible optimizations</description>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
   991
      <created by="Michael Kay" on="2018-06-08"/>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
   992
      <dependencies>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
   993
         <spec value="XSLT30+"/>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
   994
      </dependencies>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
   995
      <test>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
   996
         <stylesheet file="analyze-string-098.xsl"/>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
   997
         <initial-template name="main"/>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
   998
      </test>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
   999
      <result>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
  1000
         <all-of>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
  1001
            <assert>every $c in //row/cell[1] satisfies $c = 'a'</assert>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
  1002
            <assert>every $c in //row/cell[7] satisfies $c = 'vw'</assert>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
  1003
            <assert>deep-equal(data(//row/cell[3]), ('de', 'ss', 'ff', 'hl', 'mm', 'oo'))</assert>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
  1004
         </all-of>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
  1005
      </result>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
  1006
   </test-case>
2d943e2bde09 analyse-string test case where the same regex is used repeatedly, to exercise any caching or similar optimizations
Michael Kay <mike@saxonica.com>
parents: 1656
diff changeset
  1007
   
1894
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1008
   <test-case name="analyze-string-099">
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1009
      <description>A test for non-greedy matching</description>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1010
      <created by="Michael Kay after Vladimir Nestorovsky" on="2018-09-12"/>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1011
      <dependencies>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1012
         <spec value="XSLT30+"/>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1013
      </dependencies>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1014
      <test>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1015
         <stylesheet file="analyze-string-099.xsl"/>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1016
      </test>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1017
      <result>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1018
         <all-of>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1019
            <assert>count(/out/match) = 2</assert>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1020
            <assert>/out/match[1] = '"a"'</assert>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1021
            <assert>/out/match[2] = '"b"'</assert> 
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1022
         </all-of>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1023
      </result>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1024
   </test-case>
5aca602b9d58 New regex test from a Saxon bug report
Michael Kay <mike@saxonica.com>
parents: 1850
diff changeset
  1025
   
200
7bd955bafd96 Separate analyze-string tests into their own test set
Michael Kay <mike@saxonica.com>
parents:
diff changeset
  1026
</test-set>