What is the easiest way to get current unix timestamp via XSL
+2
A:
In XSLT2, use the current-dateTime()
function.
In XSLT1 you need the EXSLT extension function date-time()
However, be aware that different processors may behave differently if the function is evaluated more than once in a stylesheet. The 'normal' behavior is for all calls in a given transformation to return the same value, so this cannot be used for profiling.
BTW, you could have done a simple Google search on "xslt timestamp" to get this information.
Jim Garrison
2010-05-19 17:36:22
Google shall perish as Stack Overflow takes over the world and drives around in vans making pictures for maps, beware for the New World Order.
Lajla
2010-05-19 18:00:32