On 25.1.2019 16:32, Eliot Kimber ekimber(_at_)contrext(_dot_)com 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(_at_)kosek(_dot_)cz 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
------------------------------------------------------------------
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--