RE: [xsl] xsl:choose / xsl:when problems

Subject: RE: [xsl] xsl:choose / xsl:when problems
From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx>
Date: Wed, 21 Feb 2001 10:27:36 -0800
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


-----Original Message-----
From: Wayne Davis [mailto:quietman@xxxxxxxx]
Sent: February 21, 2001 10:03
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] xsl:choose / xsl:when problems

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".

    <xsl:when test="substring(@DateReceived,6,2) = '01'"/>January</xsl:when>
    <xsl:when test="substring(@DateReceived,6,2) =


 XSL-List info and archive:

Current Thread