[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Replace all occurrences
Hi! I have some xml looking like this: <?xml version="1.0"?> <citylist> <distance city="A">1 HOURS</distance> <distance city="B">2 HOURS</distance> <distance city="C">30 MINUTES</distance> <distance city="D">6 HOURS</distance> </citylist> ...and some xsl looking like this: <xsl:stylesheet xmlns:xsl='http://www.w3.org/XSL/Transform/1.0'> <xsl:template match="citylist"> <xsl:for-each select="distance"> <xsl:value-of select="@city"/> <xsl:text>=</xsl:text> <xsl:value-of select="."/> <xsl:text> </xsl:text> </xsl:for-each> </xsl:template> </xsl:stylesheet> Together this creates this: A=1 HOURS B=2 HOURS C=30 MINUTES D=6 HOURS This is the "result" I wan't besides that instead of the words "HOURS" and "MINUTES" I wan't it to say "Hour" and "Minutes", with the first letter as a capital and the rest as small letters. Is this possible to do with xsl? Thanks! /Henrik 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
|