W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2009

[Bug 5166] [XSLT 2++] Enhancement: sorting and grouping

From: <bugzilla@wiggum.w3.org>
Date: Tue, 14 Apr 2009 10:13:44 +0000
To: public-qt-comments@w3.org
Message-Id: <E1LtfeC-0006cn-NH@wiggum.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5166





--- Comment #4 from Michael Kay <mike@saxonica.com>  2009-04-14 10:13:44 ---
See also bug #4921

Use case encountered today: an up-conversion from a text file - needed to use
group-starting-with on the sequence of text lines obtained effectively from the
unparsed-text-lines() function. Had to convert these strings to nodes because
group-starting-with only works on a sequence of nodes!

Possible solutions:

(a) group-starting-when as suggested above (accepting an expression rather than
a pattern)

(b) patterns that match atomic values - this would also allow generalizing
apply-templates to work on atomic values. For example, allow the pattern
".[predicate]" to match an atomic value for which the predicate is true. That's
a bit inelegant for the case of ".[. instance of xs:string]" - perhaps allow
"~xs:string" or type(xs:string) for that case.


-- 
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, 14 April 2009 10:13:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 14 April 2009 10:13:55 GMT