[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
<?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>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] Date in document !
Subject: Re: [xsl] Date in document ! From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx> Date: Tue, 25 Jun 2002 14:02:40 +0000 |
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@xxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Date in document !, Michael Kay | Thread | Re: [xsl] Date in document !, Jarkko . Moilanen |
[xsl] How to use caracter " in a St, Tuan-Dung Cao | Date | RE: [xsl] sort; no duplicates, Michael Kay |
Month |