Subject: [xsl] RE: xsl-list Digest 17 Feb 2006 06:10:00 -0000 Issue 693 From: "Andrew Smith" <andrew.smith@xxxxxxxxxxxxx> Date: Fri, 17 Feb 2006 09:28:18 -0000 |
Hi, Thanks for that, I tried that locally as well and I'm getting the correct result, it must be something to do with the remote setup... or something. In that stylesheet though I don't import the template I've copied it directly into it. I'm going to have to look a bit deeper into this. Thanks for your help Andy -----Original Message----- Date: Thu, 16 Feb 2006 15:41:40 +0530 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx> Subject: Re: [xsl] RE: Problem with date:add Message-ID: <7870f82e0602160211o143cf87ck5f222e98e3d92199@xxxxxxxxxxxxxx> Given this XML file <?xml version=3D"1.0" encoding=3D"UTF-8"?> <?xml-stylesheet type=3D"text/xsl" href=3D"date_add.xsl"?> <root CurrentDateTime=3D"2006-02-16T09:42:00"> <something/> </root> and this stylesheet <?xml version=3D"1.0" encoding=3D"UTF-8"?> <xsl:stylesheet version=3D"1.0" xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform" xmlns:date=3D"http://exslt.org/dates-and-times" extension-element-prefixes=3D"date"> <xsl:import href=3D"date.add.template.xsl"/> <xsl:output method=3D"html" /> <xsl:template match=3D"/"> <xsl:call-template name=3D"date:add"> <xsl:with-param name=3D"date-time" select=3D"root/@CurrentDateTime" /> <xsl:with-param name=3D"duration" select=3D"'-P30D'" /> </xsl:call-template> </xsl:template> </xsl:stylesheet> I get correct results both with Saxon b 8.6.1 and IE 6. Regards, Mukul
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] RE: xsl-list Digest 17 Feb 20, Andrew Smith | Thread | [xsl] xsl:apply-templates to all bu, Bob DuCharme |
[xsl] RE: xsl-list Digest 17 Feb 20, Andrew Smith | Date | Re: [xsl] Convert paramter to a seq, David Carlisle |
Month |