On 25.1.2019 16:32, Eliot Kimber ekimber@xxxxxxxxxxxx wrote:
> Beyond all these suggestions, I always create functions that return
> grouping and sort keys as the logic could be much more
> sophisticated, especially if you bring in locale-aware processing.
+1
DocBook stylesheets use this approach as well:
https://github.com/docbook/xslt20-stylesheets/blob/b86ba54981e39649623d5b87a2b208e6aa404907/xslt/base/common/dbfunctions.xsl
See group-index() and group-label() functions
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@xxxxxxxx http://xmlguru.cz
------------------------------------------------------------------
Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz
------------------------------------------------------------------
|