xsl-list
[Top] [All Lists]

RE: XSLT: Get timestamp

2004-08-03 14:12:54
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(_at_)utdallas(_dot_)edu] 
Sent: Tuesday, August 03, 2004 5:59 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_at_)timbrasil(_dot_)com(_dot_)br] 
Sent: Tuesday, August 03, 2004 2:06 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



<Prev in Thread] Current Thread [Next in Thread>