This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]