[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Does XSL have arrays?

Subject: RE: Does XSL have arrays?
From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx>
Date: Thu, 4 Jan 2001 08:46:06 -0800
storing arrays xsl
Rosa I-Ting Cheng wrote:
> Can anyone please tell me whether XSL has arrays?
> I'm trying to count the days between two dates

I don't believe you need arrays to do this.  You need an algorithm that
converts a date (year, month, and day) into an absolute day number starting
from some arbitrary starting date.  There are algorithms for this that just
involve calculations and don't require an array storing the number of days
in each month.  I have lost the one that I used back in the 1970's, but I
recall that it involved multiplying the month number by 28.35 or something
like that.  You could probably find one of these algorithms published on the
Internet somewhere.

PC2

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.