This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Date in document !
- From: "Vasu Chakkera" <vasucv at hotmail dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 25 Jun 2002 14:02:40 +0000
- Subject: Re: [xsl] Date in document !
- Reply-to: xsl-list at lists dot mulberrytech dot com
Mehul,
You may make use of the Extension libraries to accomplish this.
the following is what you may wish to do..
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java = "java">
<xsl:template match="/">
<xsl:value-of select="java:util.Date.new()"/>
<!-- the date u get this is of the format "Tue Jun 25 14:59:27 BST 2002"
you may format this date string to which ever way u like -->
</xsl:template>
</xsl:stylesheet>
HTH
Vasu
From: Mehul Kishor Mehta <mkishor@lucent.com>
Reply-To: xsl-list@lists.mulberrytech.com
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] Date in document !
Date: Tue, 25 Jun 2002 09:08:33 -0400
I am using XSLT to parse XML, and I am using SAXON to create html format
output. I would like to know is there anyway I can insert date (on which
document is created) in the document. Please let me know if anyone knows
anyway to do so.
Please note, XML file is generated by some other tool and so I cannot
hand-edit XML file.
Thanks for your help in advance,
Mehul.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list