Please see http://www.exslt.org/date/index.html
 
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:
 
http://saxon.sourceforge.net/saxon6.5.3/extensions.html#EXSLT
 
Michael Kay
-----Original Message-----
From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Jianting Bao
Sent: 12 November 2003 15:14
To: saxon-help@lists.sourceforge.net
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="
http://www.w3.org/1999/XSL/Transform"
                xmlns:date="
http://exslt.org/dates-and-times"
                extension-element-prefixes="date">
  <!--<xsl:import href="date.xsl"/>-->
   <!-- Root template -->
   <xsl:template match="/">
   <html>
   <body>
    <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;              
   </xsl:template>
</xsl:stylesheet>

cheers

Bao

______________________________________________________________________________
Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2
Kostenlos downloaden: http://screensaver.web.de/?mc=021110 ------------------------------------------------------- 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! http://www.apachecon.com/ _______________________________________________ saxon-help mailing list saxon-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/saxon-help