Leticia Meyer
Leticia Meyer

Reputation: 217

Make string lowercase XSLT

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?

Upvotes: 3

Views: 20576

Answers (2)

Michael Kay
Michael Kay

Reputation: 163262

To put you out of your misery, and ignoring protocol regarding duplicate questions,

<xsl:value-of select='lower-case(@prototype)'/>

Upvotes: 13

Ahmed Hashim
Ahmed Hashim

Reputation: 264

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

Upvotes: 1

Related Questions