This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: time from server to document
- From: "J.Pietschmann" <j3322ptm at yahoo dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 26 Mar 2002 22:30:22 +0100
- Subject: Re: [xsl] time from server to document
- References: <20020325163449.14672.qmail@web10108.mail.yahoo.com> <E16pkB8-0007ij-00@pdavis.cx> <1017126647.3ca01ef7f1a88@imp1.uta.fi>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Jarkko Moilanen wrote:
> I want to get the date and time to xml document with xsl.
> The result file is generated from xml and xsl file using Xalan.
The other answer is to pass the values as parameters to the
style sheet:
<xsl:stylesheet ...>
<xsl:param name="date"/>
<xsl:template ...>
...
<xsl:value-of select="$date"/>
</xsl:template>
...
Consult the manual of your processor on how to pass parameters
from the command lins, or if you are using it from Java, look
for Transformer.setParameter().
This solution is more portable than using extension functions.
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list