• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 776
  • Last Modified:

Show current year in XSLT 1.0

How do I get the current year to show up on XSLT 1.0?
0
shakerad
Asked:
shakerad
  • 2
1 Solution
 
Geert BormansCommented:
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 BormansCommented:
welcome
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now