IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Get Current date using XSLT 1.0 on AltovaXML Community Edition Options · View
chatban
Posted: Thursday, November 26, 2015 5:56:14 AM
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,
K101
Posted: Monday, March 21, 2016 12:32:08 PM
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.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.