[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] for-each-group group-by


Subject: [xsl] for-each-group group-by
From: Craig Sampson <Craig.Sampson@xxxxxxx>
Date: Thu, 5 Apr 2012 14:29:46 +0000

Ken, Michael,
  Thanks for suggesting the use of the replace() function in the group-by
attribute.

  Here's what worked for me in case it helps anyone else out.

<xsl:for-each-group select="//section"
group-by="replace(paperTitle,'([\W\d]+)?(\w)(.*)','$2')">

Craig


Current Thread