This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How to pass the system date to XSL file as a variable?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] How to pass the system date to XSL file as a variable?
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 12 Sep 2001 15:14:29 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
If you are calling Xalan from Java code, just pass the date in as a
parameter.
Declare a top-level <xsl:param name="date"/>, and when calling Xalan, use
transformer.setParameter() to set its value.
Mike Kay
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
> Uslu, Cihan Y
> (MED)
> Sent: 12 September 2001 14:21
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] How to pass the system date to XSL file as a variable?
>
>
> Hi,
> I am trying to get the system date in my XSL so I can output the time
> the XML file is processed. I am using xalan package for my
> transformation, and I would appreciate if I get some help
> from the list
> showing how to do it.
>
> Thanks,,
>
> Cihan
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list