Subject: RE: [xsl] XSLT: Get timestamp From: "Marco Antonio Dias Campelo" <mcampelo_ibm@xxxxxxxxxxxxxxxx> Date: Tue, 3 Aug 2004 18:12:54 -0300 |
It is just what the doctor ordered! Thanks for your help! This is my xsl: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="java" xmlns:java="http://xml.apache.org/xslt/java"> <xsl:template mode="datetime" match="*"> <datetime> <xsl:value-of select="java:format(java:java.text.SimpleDateFormat.new('yyyyMMddHHmmss' ), java:java.util.Date.new())"/> </datetime> </xsl:template> </xsl:stylesheet> Best Regards, Marco Campelo -----Original Message----- From: Subbiah [mailto:subbiah@xxxxxxxxxxxx] Sent: Tuesday, August 03, 2004 5:59 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] XSLT: Get timestamp http://xml.apache.org/fop/fo.html#xslt-date Hope this helps. If you still have questions mail abck. Thx regards, raman -----Original Message----- From: Marco Antonio Dias Campelo [mailto:mcampelo_ibm@xxxxxxxxxxxxxxxx] Sent: Tuesday, August 03, 2004 2:06 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] XSLT: Get timestamp Hello Guys, I have a requirement in my project which says that I have generate a timestamp (now()) inside my XSLT. I searched newsgroups, google, books and tutorials, but I couldn't find a way to implement it. What do you say? Is it possible? Or should I implement a extension to my XSLT engine? Thanks in advance, Marco Campelo
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSLT: Get timestamp, Subbiah | Thread | [xsl] RE: XSLT: Get timestamp, Marco Antonio Dias C |
Re: [xsl] xsltproc complains about , Ed_Owen | Date | [xsl] How about xsl:fo to xml using, Manpreet Singh |
Month |