This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Sorting upper and lower case separately.


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]