|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Making a string lowercase
There are two ways of doing this.. either u use the translate function to do some thing in the lines of translate($myvariable,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqqrstuvwxyz') or u may use the extension library along the lines of the following code <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="java" > <xsl:output method="html" encoding="UTF-8"/> <xsl:template match="/colleges/college"> <h3> <xsl:variable name="tmp" select="java:lang.String.new(.)"/> <xsl:value-of select="java:toUpperCase($tmp)"/> </h3> </xsl:template> </xsl:stylesheet> for an xml <colleges> <college>fau</college> <college>mu</college> <college>svu</college> </colleges> you wud see the result in the caps.. HTH Joel Konkle-Parker schrieb: _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








