When xsl:analyze string is executed and the supplied
pattern does not match the input string, then the
entire input string should be passed to the
<xsl:non-matching-substring> element. But the code
doesn't pass the text to either the matching-substring
or non-matching-substring instruction, it is simply
Applies to 7.3.1 and all releases since regular
expressions were introduced (7.2).
Source code fixed: add the line
hasNext = true;
in net.sf.saxon.instruct.RegexIterator, line 76.
Test case added, regex12