With XSLT 1.0, you can do as following:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" />
<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>
</xsl:stylesheet>
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)
On 9/21/06, Ambika(_dot_)Das(_at_)iflexsolutions(_dot_)com
<Ambika(_dot_)Das(_at_)iflexsolutions(_dot_)com> wrote:
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
http://gandhimukul.tripod.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--