xpath uppercase function

Soldato
Joined
1 Feb 2006
Posts
8,188
hi,

i need to use xpath to convert a string to uppercase.. it goes something like this...

Code:
<xsl:value-of select="author_surname" />

This is the code I have in my template to read in a value

How do I adapt the above line to ensure that the value is automatically converted to uppercase before being printed to screen?

Cheers in advance
 
got a solution..

Code:
<xsl:value-of select="translate(author_surname,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ=')" />

Hope this helps someone else.

Jonny
 
Back
Top Bottom