Subject: Re: parsing text
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 6 Nov 2001 21:27:56 GMT
|
if the current node contains the date then you can do
Q<xsl:value-of select="ceiling(substring-before(.,'/') div 4)"/>
assuming (from your 11/26/2001 example) that your date is in the rather
strange non monotonic US month/day/year order.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- parsing text
- Ivo Wiens - Tue, 6 Nov 2001 15:10:07 -0500 (EST)
- David Carlisle - Tue, 6 Nov 2001 16:28:42 -0500 (EST) <=
|
|