Rank: Newbie
Joined: 11/26/2015 Posts: 1
|
Hi All,
I’m trying to retrieve current date by using java in XSLT 1.0. But server gives an error as “Java extension is not available in AltovaXML Community Edition”. How can I solve this? Is there any alternation way to retrieve current date on XSLT 1.0?
Code: <xsl:value-of select="java:java.util.Date.toString( java:java.util.Date.new() )"/>
Thanks,
|
Rank: Advanced Member
Joined: 2/27/2009 Posts: 564
|
XSLT 1.0 does not provide any standard method for retrieving the current date and/or time. Instead, pass the current date into the XSLT as a parameter populated by the current date of your Java platform.
|