Solved

Show current year in XSLT 1.0

Posted on 2010-11-17
3
731 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tag a picture in Word 2013? 6 48
[PHP] Hash a XML file/string 3 67
Which free XML software can I use for opening and editing an XML file? 15 105
XSLT Assistance 9 48
The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now