<xsl:if test="root/Row[(_at_)id='0']/Col[(_at_)name]='MfgDate'">
</xsl:if>
-----Original Message-----
From: Vijaya Kumar Y [mailto:vijayay(_at_)aztec(_dot_)soft(_dot_)net]
Sent: 02 December 2002 09:55
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc: Stevenson(_at_)epr(_dot_)footman-walker(_dot_)com
Subject: RE: [xsl] Date
Sorry , Sorry the question was how to identify that it is a date value(or in
the other words how do u decide whether it is date)
like in any other languages we check like IsDate("23122002") ,
in same way can i know whether it is a date based on that i would like to
format the date part
regards
Vijay
-----Original Message-----
From: Stevenson Ngila [mailto:Stevenson(_at_)epr(_dot_)footman-walker(_dot_)com]
Sent: Monday, December 02, 2002 11:33 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Date
Try:
<xsl:value-of
select="substring(Row[(_at_)id='0']/Col[(_at_)name='MfgDate'][(_at_)value],1,2
)"
<xsl:value-of
select="substring(Row[(_at_)id='0']/Col[(_at_)name='MfgDate'][(_at_)value],3,2
)"
<xsl:value-of
select="substring(Row[(_at_)id='0']/Col[(_at_)name='MfgDate'][(_at_)value],5,4
)"
Am not very sure about the path, but the general idea is to use the
substring function.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list