[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: splitting the date field in xml
Hi And then, after shutting the computer down to go to bed i realise: <xsl:template match="Context"> <xsl:choose> <xsl:when test="substring(Date, 10, 1) = ' '"> <xsl:value-of select="substring(Date, 5, 4)" /><xsl:value-of select="substring(Date, 9, 2)" /> <xsl:value-of select="substring(Date, (string-length(Date) - 3), 4)" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="substring(Date, 5, 4)" /><xsl:value-of select="substring(Date, 9, 3)" /> <xsl:value-of select="substring(Date, (string-length(Date) - 3), 4)" /> </xsl:otherwise> </xsl:choose> </xsl:template> Doesn't look very elegant, but works... -- jim smith 020 7837 0377 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
|