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.0k times
3
zzzzBov
- 167,057
- 51
- 314
- 358
Leticia Meyer
- 199
- 2
- 2
- 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
- 147,186
- 10
- 83
- 148
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
- 206
- 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