How do I convert a string to lowercase in XSLT? I'm really a noob at it, and I know you use the lower-case function, but what's an example of it in use? Do I use <fn:lowercase>StRiNg</fn>
or what?
Asked
Active
Viewed 2.1k times
3

zzzzBov
- 174,988
- 54
- 320
- 367

Leticia Meyer
- 217
- 2
- 3
- 9
-
1possible duplicate of [How can I convert a string to upper- or lower-case with XSLT?](http://stackoverflow.com/questions/586231/how-can-i-convert-a-string-to-upper-or-lower-case-with-xslt) – Jan 27 '11 at 00:35
-
1Totally duplicate. And examples are present in question @Alejandro linked. – Flack Jan 27 '11 at 06:17
2 Answers
13
To put you out of your misery, and ignoring protocol regarding duplicate questions,
<xsl:value-of select='lower-case(@prototype)'/>

Michael Kay
- 156,231
- 11
- 92
- 164
1
Check this thread How can I convert a string to upper- or lower-case with XSLT?
Also XPath function reference will be useful http://www.w3schools.com/Xpath/xpath_functions.asp
Ahmed Hashim

Community
- 1
- 1

Ahmed Hashim
- 264
- 3
- 10
-
1If this is a duplicate, don't you think that yours should be a comment, not an answer? – Jan 27 '11 at 00:34