Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#114 xsl:analyze string fails if no match

v7.3.1
closed
Michael Kay
5
2012-10-08
2002-12-20
Michael Kay
No

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
discarded.

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

Discussion

  • Michael Kay
    Michael Kay
    2003-02-17

    Logged In: YES
    user_id=251681

    Fixed in 7.4