Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Insert current timestamp/date from XSLT stylesheet into a XML document ??? [Thread Next] Re: Insert current timestamp/date from XSLT stylesheet into a XML document ???To: NULL Date: 10/4/2004 3:15:00 AM Its possible with extension functions..
Please try this..
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:datetime="http://exslt.org/dates-and-times"
exclude-result-prefixes="datetime">
<xsl:template match="/">
<currtime>
<xsl:value-of select="datetime:dateTime()" />
</currtime>
</xsl:template>
</xsl:stylesheet>
(Tested with Xalan-J 2.6.0)
Regards,
Mukul
mhertz@y... (Michael Hertz) wrote in message news:<cjqnqh$asn$02$1@n...>...
> I am performing a XSLT stylesheet on a XML document and produce a new XML document.
> How can I insert in this new XML stylesheet a tag
>
> <currtime>..."the current date/time"....</currtime>
>
> where "the current date/time" above is replaced by the real current time (e.g.
> 12th Sep 2004 09:23:78
>
> Michael
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
