XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Diana SininaSubject: How to pass current date
Author: Diana Sinina
Date: 14 Apr 2006 11:43 AM
Hello,
How do I pass current date to XSL?
Thanks

Postnext
Minollo I.Subject: How to pass current date
Author: Minollo I.
Date: 14 Apr 2006 11:58 AM
There is no "built-in" way to do that in XSLT 1.0; you can use an extension function from EXSLT to do that (http://www.exslt.org/date/index.html).

If you are using XSLT 2.0, then you can simply use the current-date() function.

Minollo

Postnext
Diana SininaSubject: How to pass current date
Author: Diana Sinina
Date: 14 Apr 2006 01:41 PM
I try to pass param from C#
and in xsl I have
<xsl:param name="CurrentDate"></xsl:param>


<xsl:text>"Date Generated: </xsl:text>
<xsl:value-of select="$CurrentDate"/>
<xsl:text>",&#13;&#10;</xsl:text>

It doesn't work, do I miss anything?

Postnext
Minollo I.Subject: How to pass current date
Author: Minollo I.
Date: 14 Apr 2006 01:47 PM
You can test the XSLT in Stylus Studio and experiment with parameters binding at the UI level; that will let you be sure that the XSLT itself is doing the right thing.

If you need specific help about how to use C# and XSLT together, you should post your questions to a different mailing list.

Minollo

Posttop
Diana SininaSubject: How to pass current date
Author: Diana Sinina
Date: 14 Apr 2006 01:54 PM
thanks!

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.