Show current year in XSLT 1.0

How do I get the current year to show up on XSLT 1.0?
shakeradAsked:
Who is Participating?
 
Geert BormansConnect With a Mentor Information ArchitectCommented:
Without extensions there is no possibility to get that

- if you need to work on different processors, best you can do is pass it in as a parameter, you can easily do that and let the calling environment deal with the date

- you could use the extension mechanism of the processor to get that date. eg. javascript in msxml, c# in .net, java in xalan and saxon, ... but you loose the browser indepence

- you could use the exslt extension mechanisms, but again that depends on the processor you are using
just see if your processor is on the list here
http://www.exslt.org/date/functions/date-time/index.html

this is not as easy a question as you seem to think :-)

0
 
shakeradAuthor Commented:
you're right, much more difficult than originally thought.
Thank you
0
 
Geert BormansInformation ArchitectCommented:
welcome
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.