Please see
where it lists date:add() as one of the functions that is "not considered stable and are not part of the core of EXSLT".
A full list of EXSLT extension functions implemented in Saxon 6.5.3 is at:
Michael Kay
-----Original Message-----
From: [] On Behalf Of Jianting Bao
Sent: 12 November 2003 15:14
Subject: [saxon] Exslt date function add() does not work in saxon

Hi, there

I've tried various versions of saxon, yet the problem of add() function remains. The typical error message is:

No method matching add with 2 parameters found in class com.icl.saxon.exslt.Date

Can anyone there give me a hand on that? Thanks in advance.

The following is my test codes, which is only for your reference.

<?xml version='1.0' encoding='windows-1252'?>
<xsl:stylesheet version="1.0" xmlns:xsl=""
  <!--<xsl:import href="date.xsl"/>-->
   <!-- Root template -->
   <xsl:template match="/">
    <xsl:variable name="today" select="date:day-in-month()"/>
        <xsl:variable name="todayInWeek" select="date:day-in-week()"/>
        <!-- <xsl:variable name="firstDayOfTheWeek" select="date:add($today, $todayInWeek)"/> -->
        <xsl:variable name="firstDayOfTheWeek" select="date:add('2003-10-23', 'P1D')"/>
        <h1>The first day of this week is <xsl:value-of select="$firstDayOfTheWeek"/></h1>
  ! </body>
   </html>    & nbsp;              



Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2
Kostenlos downloaden: ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! _______________________________________________ saxon-help mailing list