Solved

Show current year in XSLT 1.0

Posted on 2010-11-17
3
763 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

707 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