RE: [xsl] How to pass the system date to XSL file as a variable?

Subject: RE: [xsl] How to pass the system date to XSL file as a variable?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 12 Sep 2001 15:14:29 +0100
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@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> Uslu, Cihan Y
> (MED)
> Sent: 12 September 2001 14:21
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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


Current Thread