Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 5th, 2008, 04:26 AM
Registered User
 
Join Date: Sep 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to get current-dateTime() in xsl 1.0

HI,

I need to print current dateTime in my xsl 1.0 transformation, but could not able to do.
Also could not able to format the date.

Can anyone guide me in printing the current date and formmatting the date in xsl 1.0

my environment is:
Oracle Application Server 10.1.3
Oracle BPEL process manager.


 
Old September 5th, 2008, 04:34 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

There is no function or instruction to get the current date, so the only options are to use an extension function, or to pass the date in as a parameter.

I don't know anything about the Oracle applications you mentioned so couldn't say which would be easier to accomplish.

/- Sam Judson : Wrox Technical Editor -/
 
Old September 5th, 2008, 04:59 AM
Registered User
 
Join Date: Sep 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by samjudson
 There is no function or instruction to get the current date, so the only options are to use an extension function, or to pass the date in as a parameter.

I don't know anything about the Oracle applications you mentioned so couldn't say which would be easier to accomplish.

/- Sam Judson : Wrox Technical Editor -/
Hi,

I tried using extension functions(exslt) but facing some problem my xslt processor is not identifying the namespace xmlns:datetime="http://exslt.org/dates-and-times"

Can you let me know how to use the other approach of passing in date as parameters.I am new to this i could not get you how to pass parameters.
Please guide me in this..

Thank you.

 
Old September 5th, 2008, 05:04 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

The passing in of parameters will depend on the XSLT processor you are using - which isn't clear from your post (I don't know what is included in the Oracle products you listed).

You are best searching the documentation for the products in question for help on "XSLT parameters".

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL DateTime format for Excel fmoon606 XSLT 8 May 23rd, 2008 05:35 PM
Pass link values as xsl:parameter to php5 then xsl pauljr8 XSLT 1 July 2nd, 2007 10:32 PM
xsl advise needed - Replacing UID through XSL Billyl XSLT 6 February 28th, 2006 05:46 AM
UTC DateTime to Local DateTime r_ganesh76 SQL Server 2000 1 April 4th, 2005 08:21 AM
XSL Transform with xsl string NOT xsl file skin XSLT 0 June 16th, 2003 07:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.