Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Current datetime in xslt

777372Sep 23 2011 — edited Oct 1 2011
Hi ,

I want to get the current datetime during my xlst tranform. I used the below codes but can not get it .

xslt 1.0
<xsl:stylesheet ...
xmlns:ex="http://exslt.org/dates-and-times" extension-element-prefixes="ex">
...
<xsl:value-of select="ex:date-time()"/> ...
</xsl:stylesheet>

error i got: the function date-time() can not be found.

xlst 2.0
...
<xsl:value-of select="current-dateTime()"/>
..

error i got : the function current-dateTime() can not be found.


Does anyone know how i can solve this problem? Any example or suggestion is welcomed.

Thanks in advance.

Dennis
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 29 2011
Added on Sep 23 2011
14 comments
16,327 views