Easiest way to get current unix timestamp through XSL

What is the simplest way to get the current unix timestamp via XSL

+2


a source to share


1 answer


In XSLT2, use a function current-dateTime()

.

In XSLT1 you need an EXSLT extension function date-time()



Be aware, however, that different processors may behave differently if a feature is evaluated more than once in the stylesheet. The "normal" behavior for all calls in a given transformation returns the same value, so this cannot be used for profiling.

By the way, you could do a simple Google search on "xslt timestamp" to get this information.

+4


a source







All Articles