|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Capitalizing content of a variable
> Since at the time of transforming the contents of variable I
> don't know the
> exact contents hence I unable to figure out how to use
> translate function.
Sorry if I was assuming too much knowledge.
If the data is in a variable named foo, write
<xsl:value-of select="
concat(
translate(substring($foo,1,1), "abcdefg.... ", "ABCDEFG..."),
substring($foo, 2)
)"/>
It probably makes sense to put the lower-case and upper-case alphabets in
global variables.
Mike Kay
Software AG
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








