xsl-list
[Top] [All Lists]

Re: Date problem

2002-12-09 10:07:28
David Carlisle wrote:
<xsl:param name="today" select="'1066'"/>

and then just pass in the daate as a parameter when you call the
stylesheet.

Since he mentioned JavaScript, you know he's using MSXML or Mozilla...
most likely MSXML... most likely via IE... most likely not invoking it
himself and instead relying on an xml-stylesheet PI which doesn't support
passing parameters, as many newbies do.

I always tell people to check the docs for their processor to find out
how to pass an external parameter to the stylesheet. If he's using MSXML,
maybe he'll search for "external parameter stylesheet" on the MSDN site
and find the MSXML SDK docs for addParameter, which provide examples of
how to invoke the transformation from code (though the examples use 
MSXML2.DOMDocument instead of MSXML3 ... *sigh*)

Mike

-- 
  Mike J. Brown   |  http://skew.org/~mike/resume/
  Denver, CO, USA |  http://skew.org/xml/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>