[Bug 14994] [QT3] analyzeString-012, analyzeString-018

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14994

Michael Kay <mike@saxonica.com> changed:

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

--- Comment #1 from Michael Kay <mike@saxonica.com> 2011-11-29 18:13:59 UTC ---
I believe the results are correct given the way the spec is currently written.
Under fn:analyze-string, it states:

For each capturing subexpression there will be at most one corresponding
fn:group element in each fn:match element in the result.

and 5.6.1 in defining capturing groups says:

If a sub-expression matches more than one substring (because it is within a
construct that allows repetition), then only the last substring that it matched
will be captured.

It would be nice to mark up all instances of the captured group, but it could
cause some compatibility problems for replace(), and I suspect it could be
difficult to implement with some off-the-shelf regex libraries.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 29 November 2011 18:14:02 UTC