[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problem with date:add

Subject: Re: Problem with date:add
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Wed, 15 Feb 2006 16:40:14 +0530
Re:  Problem with date:add
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'" />
</xsl:call-template>

Regards,
Mukul

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.