RE: date:add problem
"David Smith" <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Organization | Comtel Resources |
| Message-ID | <[email protected]> |
What you specified in the call statement was duration with a value that is contained in an element called P1D. What you wanted to do was say that the actual value is a literal P1D. Make sense? David -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bhushan Bhangale Sent: Thursday, 9 September 2004 16:17 To: '[email protected]' Cc: '[email protected]' Subject: RE: [exslt] date:add problem Thanks David! It worked Does it mean constant needs to be defined in single quotes? But at all other places it just works fine for me. Does it mean only when doing call-template one need to use single quote to pass constant value? -----Original Message----- From: David Smith [mailto:[email protected]] Sent: 09 September 2004 07:01 To: 'Bhushan Bhangale' Subject: RE: [exslt] date:add problem Try: <xsl:call-template name="date:add"> <xsl:with-param name="date-time" select="$exsltDate"/> <xsl:with-param name="duration" select="'P1D'"/> </xsl:call-template> Notice "'P1D'" Regards David -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bhushan Bhangale Sent: Thursday, 9 September 2004 15:46 To: '[email protected]' Subject: [exslt] date:add problem Hi, My requirement is to add a day in a date. I tried as below. <xsl:call-template name="date:add"> <xsl:with-param name="date-time" select="$exsltDate"/> <xsl:with-param name="duration" select="P1D"/> </xsl:call-template> The $exsltDate has value 2005-01-07. I tried some hit and trials but no result. the call-template just returns blank. Is there any problem in date:add template? I properly defined name space and included the template. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date"> <xsl:include href="date.add.template.xsl"/> In the same environment I am able to date:difference successfully. Please help its urgent. Thanks Bhushan ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ _______________________________________________ exslt mailing list [email protected] http://www.exslt.org/list ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ _______________________________________________ exslt mailing list [email protected] http://www.exslt.org/list