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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

XSLT getting todays date

  • 21-05-2007 10: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