[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Date problem

Subject: Re: Date problem
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 9 Dec 2002 10:07:28 -0700 (MST)
Re:  Date problem
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.