Subject: Re: [xsl] 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 |
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?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Ignoring quotation marks in g, Michele R Combs mrro | Thread | Re: [xsl] Ignoring quotation marks , Michele R Combs mrro |
[xsl] Ignoring quotation marks in g, Michele R Combs mrro | Date | Re: [xsl] Ignoring quotation marks , Michele R Combs mrro |
Month |