|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.reverseXSL.util.CurrentDate
public class CurrentDate
To be used as Xalan XSLT extension function for inserting the current date into XSLT outputs.
use as follows in XSLT scripts:
<xsl:stylesheet version="1.0"
xmlns:fct="com.reverseXSL.util.CurrentDate" extension-element-prefixes="fct"
xmlns:rx="http://reverseXSL.com"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
...
<xsl:text>DATETIME=</xsl:text>
<xsl:value-of select="fct:nowDate()"/>
...
which will generate in output:
DATETIME=2007-07-11 07:51:03+0200
Constructor Summary | |
---|---|
CurrentDate()
|
Method Summary | |
---|---|
static java.lang.Object |
nowDate()
Returns a predefined-format date string. |
static java.lang.Object |
nowDate(java.lang.String dateFormat)
Returns a date string formatted as specified in argument. |
static java.lang.Object |
nowXMLDate()
Returns a date and time value compliant with the XML-schema dateTime simple type. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurrentDate()
Method Detail |
---|
public static java.lang.Object nowDate()
public static java.lang.Object nowDate(java.lang.String dateFormat)
dateFormat
- as specified in java.text.SimpleDateFormat.
public static java.lang.Object nowXMLDate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |