This content has been marked as final. Show 5 replies
You may use XQuery function fn:current-dateTime()
Thanks for the reply. I think I was not clear. There are plenty of date functions to use in XQuery, but I would like to insert the date in XSLT.
I would like to encapsulate all of the transformation in one piece. It seems silly to have to do something as simple as a current-dateTime as a complete extra step outside of my XSLT, but I can't seem to figure it out.
Doesn't xslt have a fn:current-dateTime ? If this is not supported in xslt 2.0 have you tried concatenating fn:current-date and fn:current-time
Trying to set apostrophes or ' around the T break the XSLTYou can put ' in xslt select clause by escaping it suitably
For 'T', try this
concat(& quot;'& quot;,
& quot;'& quot;)
remove space between & and quot
Edited by: atheek1 on Dec 15, 2010 7:36 AM
Yes, XSLT 2.0 does have a current-dateTime() function. The problem is that XSLT 2.0 is not supported within the OSB, only within the SOA Suite.
But, your formatting fixed my issue, and I am now able to create date times the way that I need to. Thanks for your reply!