Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

XSLT getting todays date

Options
  • 21-05-2007 11:11am
    #1
    Registered Users 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 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