Solved

Show current year in XSLT 1.0

Posted on 2010-11-17
3
752 Views
Last Modified: 2012-05-10
How do I get the current year to show up on XSLT 1.0?
0
Comment
Question by:shakerad
  • 2
3 Comments
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 500 total points
ID: 34159007
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
 

Author Comment

by:shakerad
ID: 34159067
you're right, much more difficult than originally thought.
Thank you
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 34159107
welcome
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question