This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Re: Sorting upper and lower case separately.
- From: "Brian Burridge" <brian_burridge at coxtarget dot com>
- To: <xsl-list-digest at lists dot mulberrytech dot com>
- Cc: <carstenklein at yahoo dot de>
- Date: Thu, 21 Feb 2002 12:00:22 -0500
- Subject: Re: Re: [xsl] Sorting upper and lower case separately.
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Oops =)
> Of course you will have to use substring() to only use the first letter of
> the name attribute in the comparison
> i.e.
> <xsl:for-each select="substring(@name,1,1) =
> upper-case(substring(@name,1,1))">
> and
> <xsl:for-each select="substring(@name,1,1) =
> lower-case(substring(@name,1,1))">
> Hope this helps
> Regards
> Carsten
Do you know how I would work that in with the for each that I'm using:
<xsl:for-each select="key('elements', type)">
I'm not sure how to get at the name (which is "Foundation.Core.ModelElement.name") in order to do a substring on it.
Brian N. Burridge
Sr. Internet Developer Analyst
The Internet Group @ Cox Target Media
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list