Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

XSLT getting todays date

  • 21-05-2007 11:11AM
    #1
    Registered Users, Registered Users 2 Posts: 500 ✭✭✭


    Hi folks im working on xslt at the moment and am trying to figure out how to retrieve the current date - if this is even possible.

    I am using salt to do it.

    Any help?

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 398 ✭✭reece


    if you're invoking your xslt from java then pass in a java class as a parameter. Your java class will have the date function.
    add the following to the <xsl:stylesheet tag -

    xmlns:java="http://xml.apache.org/xalan/java&quot;

    now your parameter

    <xsl:param name="Utilities" />

    then make a method call on the class to get your date -

    <xsl:value-of select="java:getTodaysDate($Utilities)"/>


Advertisement