ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
Re: [exslt] date:date returns 2000-01-01Z. What is wrong?
by Jfuller other posts by this author
Sep 19 2006 4:09AM messages near this date
Re: [exslt] date:date returns 2000-01-01Z. What is wrong? | Re: [exslt] date:date returns 2000-01-01Z. What is wrong?
& XSLT Vitaliy Obmanjuk wrote:

>  As I see,
>  The |date:date| function returns the date specified in the date/time 
>  string given as the argument. If no argument is given, then the 
>  current local date/time, as returned by |date:date-time| is used as a 
>  default argument.
> 
>  Template1
>  <xsl:call-template name="date:date">
>                 <xsl:with-param name="date" />
>  </xsl:call-template>
>  returns 2000-01-01Z, but
>  Template2
>  <xsl:call-template name="date:date">
>                 <xsl:with-param name="date" />
>  </xsl:call-template>
>  returns "".
> 
>  I simply want to get current date, that is all I want! :)
> 
>  My xsl file starts with
>  <xsl:stylesheet version="1.0"
>    xmlns:xsl=" http://www.w3.org/1999/XSL/Transform"
>    xmlns:date="http://exslt.org/dates-and-times"
>    extension-element-prefixes="date">
>     
>  <xsl:import href="date/date.date.xsl" />
>  ("date" folder consists of unpacked date.date.zip)
> 
>  I'm using xalan-2.7.0, there is no errors while compiling xsl file.
> 
>  Do u have a links on simple xsl that using date.date.zip?
> 
>  Regards, Vitaliy
> 
>  2006/9/19, James Fuller <jim.fuller@[...].uk 
>  <mailto:jim.fuller@[...].uk>>:
> 
>      James Fuller wrote:
> 
>      > Vitaliy Obmanjuk wrote:
>      >
>      >> Hi
>      >> I'm downloaded date.date.zip.
>      >> After I called
>      >>             <xsl:call-template name="date:date">
>      >>                <xsl:with-param name="date" />
>      >>             </xsl:call-template>
>      >> I have "2000-01-01Z" on my html-page. What's wrong? Is there simple
>      example?
>      >> Thank u very much
> 
> 
xalan should support this function natively, so no need to import date 
xsl templates
read this as an example;

http://marc2.theaimsgroup.com/?l=xalan-j-users&m=113138262618493&w=4

though, as already mentioned, the date.date.xsl template works...you are 
force feeding it a parameter that it doesnt understand.

think about it.

gl, Jim Fuller

_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
Thread:
Vitaliy Obmanjuk
Florent Georges
Vitaliy Obmanjuk
Florent Georges
Vitaliy Obmanjuk
Florent Georges
Florent Georges
Vitaliy Obmanjuk
Florent Georges
James Fuller
Vitaliy Obmanjuk
Florent Georges
Jfuller
James Fuller
James Fuller

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved