|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Date
Hi. This will test if there is a Col with an attribute named 'name' with text equal to 'MfgDate', you probably meant to say: <xsl:if test="root/Row[@id='0']/Col[@name='MfgDate']"> Or: <xsl:if test="root/Row[@id='0']/Col/@name='MfgDate'"> -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Stevenson Ngila Sent: segunda-feira, 2 de Dezembro de 2002 7:12 To: Xsl-List@Lists. Mulberrytech. Com Subject: RE: Date <xsl:if test="root/Row[@id='0']/Col[@name]='MfgDate'"> </xsl:if> -----Original Message----- From: Vijaya Kumar Y [mailto:vijayay@xxxxxxxxxxxxxx] Sent: 02 December 2002 09:55 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Cc: Stevenson@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: 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@xxxxxxxxxxxxxxxxxxxxxx] Sent: Monday, December 02, 2002 11:33 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: Date Try: <xsl:value-of select="substring(Row[@id='0']/Col[@name='MfgDate'][@value],1,2 )" <xsl:value-of select="substring(Row[@id='0']/Col[@name='MfgDate'][@value],3,2 )" <xsl:value-of select="substring(Row[@id='0']/Col[@name='MfgDate'][@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 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








