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

RE: [xsl] Testing for upper and lower case


Subject: RE: [xsl] Testing for upper and lower case
From: "Houghton,Andrew" <houghtoa@xxxxxxxx>
Date: Thu, 3 Nov 2011 12:00:37 -0400

What's wrong with matches($text, '^\p{Lu}+$') matches uppercase,
matches($text, '^\p{Ll}+$') matches lowercase, matches($text,
'^\p{lu}\p{ll}+$') matches capital case. In the latter case you might also be
able to use matches($text, '^\p{Lt}+$').

Andy.

> -----Original Message-----
> From: Mark [mailto:mark@xxxxxxxxxxxx]
> Sent: Thursday, November 03, 2011 11:56
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Testing for upper and lower case
>
> I was able to find functions that change case [upper-case(), lower-
> case()],
> but nothing that tested case. Is it possible to determine if the first
> letter of a word is upper or lower case? For instance, differentiate
> between
> @word="Android" and @word="with" by the case of the words' first letter
> alone?
>
> Thanks,
> Mark


Current Thread