开发者

Make string lowercase XSLT

开发者 https://www.devze.com 2023-02-06 18:54 出处:网络
How do I convert a string to lowercase in XSLT? I\'m really a noob at it, and I kn开发者_运维技巧ow you use the lower-case function, but what\'s an example of it in use? Do I use <fn:lowercase>S

How do I convert a string to lowercase in XSLT? I'm really a noob at it, and I kn开发者_运维技巧ow you use the lower-case function, but what's an example of it in use? Do I use <fn:lowercase>StRiNg</fn> or what?


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

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消