Re: [xsl] Problem with date:add

Subject: Re: [xsl] Problem with date:add
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Wed, 15 Feb 2006 16:40:14 +0530
On 2/15/06, Andrew Smith <andrew.smith@xxxxxxxxxxxxx> wrote:
>        <xsl:call-template name="date:add">
>                <xsl:with-param name="date-time"
> select="2006-02-10T15:38:00" />
>                <xsl:with-param name="duration">-P30D</xsl:with-param>
>        </xsl:call-template>

You are making mistake with the syntax in select. The correct format
is (please note single quotes)

<xsl:call-template name="date:add">
    <xsl:with-param name="date-time" select="'2006-02-10T15:38:00'" />
    <xsl:with-param name="duration" select="'-P30D'" />


Current Thread