Tuesday, March 9, 2010

XSLT -=- String to Upper Case


In order to convert a string to upper case with XSLT, you can use the translate function. Here's an example how to do this.

This example show the value of the VALUE variable in the XML. If VALUE equals "toto". So the XSLT will show "toto".

If we use "translate" function, it will convert each character to the equivalent character in upper case. The following example will show "TOTO"...

No comments:

Post a Comment