Subject: Re: [xsl] Function to convert string to upper case From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx> Date: Thu, 21 Sep 2006 10:30:07 +0530 |
<xsl:variable name="smallcase" select="'abcdefghijklmnopqrstuvwxyz'" /> <xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
<xsl:template match="/"> <xsl:value-of select="translate(doc, $smallcase, $uppercase)" /> </xsl:template>
If you are using XSLT 2.0, then you can use XPath function "upper-case" (http://www.w3.org/TR/xpath-functions/#func-upper-case)
Hi,
Is there a way to convert a string to upper case? For example, given the string testString, the output should be TESTSTRING.
Sample Input
<?xml version="1.0"?> <doc>testString</doc>
Sample Output
TESTSTRING
Thanks & Regards, Ambika Prasad Das
-- Regards, Mukul Gandhi
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Function to convert string to, Ambika.Das | Thread | [xsl] writing error file, Frank Marent |
[xsl] Function to convert string to, Ambika.Das | Date | Re: [xsl]   appearing as ? in F, Abel Braaksma |
Month |