xsl-list
[Top] [All Lists]

Re: Problem with date:add

2006-02-15 04:10:14
On 2/15/06, Andrew Smith <andrew(_dot_)smith(_at_)itility(_dot_)co(_dot_)uk> 
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'" />
</xsl:call-template>

Regards,
Mukul

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>