Can current date be inserted into output via XSLT v1.0

I have an incoming data stream that is being converted from XSLT v1.0 that the incoming data does not contain any date information. what I would like is a good way to get the current date to become part of the resulting output stream.

I am aware of functions like 2.0 current-date () - unfortunately they are not available for this environment ...

any thoughts / hacks / alternatives?

TIA

+2


a source to share


2 answers


Extension functions can be avoided.



Just pass the current date as one of the XSLT transformation parameters when you initiate it .

0


a source


This might be helpful: http://exslt.org/date/functions/date-time/index.html

Date and time extension functions implemented in some xslt processors, see the link on the page for more information.



Edit
Another solution could be to pass the current datetime as a parameter to the xslt processor.

0


a source







All Articles