|
Subject: [xsl] for-each-group group-by From: Craig Sampson <Craig.Sampson@xxxxxxx> Date: Wed, 4 Apr 2012 21:03:35 +0000 |
Hello,
I am creating an index of paper titles using xsl:for-each-group to select
and group by the titles of the papers alphabetically using the first character
of the title.
Eg:
<xsl:for-each-group select="//section"
group-by="upper-case(substring(normalize-space(paperTitle),1,1))">
<xsl:sort select="current-grouping-key()"/>
. . .
Some of the paper titles start with double left hand quotes. Others start
with a numeral. In those cases I want the group-by to use the first alpha
character in the title string. I could do this if regular expressions were
allowed in the group-by attribute, but they're not.
Can anyone suggest how to make this work?
Thanks,
Craig
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] controlling graphic displ, Vasu Chakkera | Thread | Re: [xsl] for-each-group group-by, G. Ken Holman |
| Re: [xsl] controlling graphic displ, Vasu Chakkera | Date | Re: [xsl] for-each-group group-by, G. Ken Holman |
| Month |