xsl-list
[Top] [All Lists]

Re: Working with xs:date and xs:gYearMonth

2004-06-22 21:28:37
"Michael" == Michael Kay <mhk(_at_)mhk(_dot_)me(_dot_)uk> 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