|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSLT: Get timestamp
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: 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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








