|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl:choose / xsl:when problems
Try this:
<xsl:when test="substring(@DateReceived,6,2) = '01'">January</xsl:when>
instead of what you had:
<xsl:when test="substring(@DateReceived,6,2) = '01'"/>January</xsl:when>
You have an empty xsl:when element, followed by a text element, followed by
</xsl:when>.
PC2
-----Original Message-----
From: Wayne Davis [mailto:quietman@xxxxxxxx]
Sent: February 21, 2001 10:03
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: xsl:choose / xsl:when problems
Hi...
I'm trying to come up with a solution (this hack is the best I seem capable
of at the moment) to converting
a date in the following format "YYYY-MM-DDTHH:NN:SS" to MMM dd, yyyy".
<TD>
<xsl:choose>
<xsl:when test="substring(@DateReceived,6,2) = '01'"/>January</xsl:when>
<xsl:when test="substring(@DateReceived,6,2) =
'02'"/>February</xsl:when>
</etc>
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








