This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Does XSL have arrays?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Does XSL have arrays?
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 4 Jan 2001 16:54:12 GMT
- References: <200101040407.f0447xI10025@skew.org>
- Reply-To: xsl-list at lists dot mulberrytech dot com
>
> <xsl:variable name="days"
> select="number(substring('312831303130313130313031',$month * 2 -
> 1,2))"/>
But I'm sure storing the answer is cheating and you're supposed to work
it out:-)
select="(30+floor($month * 1.125) mod 2) - 2 * ( floor(2 div $month) mod 2)"/>
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list