Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I need help in displaying the current date in xslt 1.0. I dont want to use any javascript functions. Please help. I tried to google and did this
XML
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
               xmlns:Datetime="http://exslt.org/dates-and-times" exclude-result-prefixes="Datetime">

 <xsl:value-of select="Datetime:current-date()" />

But this fails throwing an error 'Cannot find the script or external objects that implements the prefix Datetime'..I am new to xslt so please bear me if ihave made any blunder.Thanks
Posted
Updated 30-Apr-13 10:27am
v4
Comments
Sergey Alexandrovich Kryukov 30-Apr-13 12:07pm    
Did you try to find the solution somewhere?
—SA
vidkaat 30-Apr-13 12:52pm    
I am trying but nothing works.
Maciej Los 30-Apr-13 14:52pm    
"This fails" in not informative at all. What kind of error occurs?
vidkaat 30-Apr-13 16:26pm    
The error is 'Cannot find the script that implements the prefix Datetime'
TnTinMn 30-Apr-13 14:56pm    
Hi, this is not my thing, but with a quick search I found this:

http://www.xmlforasp.net/codeSection.aspx?csID=42[^]

Perhaps, it will work for you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900