[xsl] How to get a case insensetive grouping ??

Subject: [xsl] How to get a case insensetive grouping ??
From: "Michael Bauerfeld" <michael@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 28 Feb 2002 11:27:28 +1100
I'm using the Muenchian Method to group elements of a xml file. Currently my
xsl produces separate groups for identical words with different spelling
(upper-/lower-case). Is there an easy way to create an 'overall' group for
such elements (e.g. "NAME" and "name")? I've tried translate() but that
seems not to work.


XSL sample ....

<xsl:key name="elementToGroup_" match="level2/level3"
use="translate(elementToGroup,'abcdef...','ABCDEF...')" />
<xsl:output method="html"/>

<xsl:template match="level1">
	<xsl:apply-templates select="level2/level3[generate-id(.) =
generate-id(key(elementToGroup_', elementToGroup)[1])]" />


XML sample ....

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread