![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: xsl:variables. [Thread Next] Re: xsl:variables.To: NULL Date: 3/28/2008 1:09:00 PM Guoqi Zheng wrote: > Also the function works as case sensitive, how can I make it > case-insensitive? With XSLT 1.0 you can use e.g. <xsl:param name="uc" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/> <xsl:param name="lc" select="'abcdefghijklmnopqrstuvwxyz'"/> and then use e.g. <xsl:key name="by-letter" match="item" use="translate(substring(., 1, 1), $uc, $lc)"/> and apply that translate function everywhere where you need case insensitive comparison. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
