W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2016

[Bug 29407] [QT3] analyze-string-008, analyzeString-017a, nested grouping

From: <bugzilla@jessica.w3.org>
Date: Sun, 31 Jan 2016 10:13:41 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29407-523-tWdyEneGoR@http.www.w3.org/Bugs/Public/>

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
                 CC|                            |mike@saxonica.com

--- Comment #2 from Michael Kay <mike@saxonica.com> ---
The string value of the XML that results from analyze-string is always the
original input string; the function essentially takes the original string and
adds markup to show the way in which the regex was (or wasn't) matched. I think
the spec makes this clear. Your proposed result doesn't have this property.

You say that "the current result assumes that "n" is not part of group 1".
That's not the case. The current result is

<fn:match><fn:group nr="1">a<fn:group nr="2">n</fn:group></fn:group></fn:match>

which shows that the "n" is part of both groups 1 and 2 - the groups are

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Sunday, 31 January 2016 10:13:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:57 UTC