[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Working with xs:date and xs:gYearMonth
>>>>> "Michael" == Michael Kay <mhk@xxxxxxxxx> writes: Michael> <xsl:variable name="first-of-previous-month" Michael> select="xs:date('0000-01-01') + ($previous-month * Michael> $one-month)" as="xs:date"/> Well, Saxon 8.0 doesn't allow this (quite right too - there never was a year zero!). I tried substituting -0001-01-01, which saxon doesn't complain of, but date='{first-of-previous-month}'" is coming out as date=''. -- Colin Paul Adams Preston Lancashire
|
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
|