[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Ignoring quotation marks in grouping and sorting

Subject: Re: Ignoring quotation marks in grouping and sorting
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 4 Jan 2019 18:13:06 -0000
Re:  Ignoring quotation marks in grouping and sorting
On 04.01.2019 19:03, Michele R Combs mrrothen@xxxxxxx wrote:

I first create a key like so, using translate to lump all titles that start with numerals together):

<xsl:key name="letter-group" match="fmp:ROW" use="translate(substring(fmp:COL[2]/fmp:DATA,1,1),'abcdefghijklmnopqrstuvwxyz1234567890','ABCDEFGHIJKLMNOPQRSTUVWXYZ##########')" />

Then I do a for-each over the keys, sort that subset, and output:

<xsl:for-each select="key('letter-group', substring(fmp:COL[2]/fmp:DATA,1,1))">
    <xsl:sort select="substring(fmp:COL[2]/fmp:DATA,1,1)" />



What I want is this, with the quoted titles sorted into their correct alpha location:

Is there a way to do this in XSL 1.1?

Well, which XSLT 1.1 processor is that, does it have any extension function support for easier or more powerful string handling than XPath 1.0 provides?


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.