This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: parameters to xsl file
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 18 Mar 2002 12:26:32 -0000
- Subject: RE: [xsl] parameters to xsl file
- Reply-to: xsl-list at lists dot mulberrytech dot com
> i have to run this xsl based on the id which could be varying..
> and this id is not from xml file..
> is there a way that i pass on this id as a parameter to xsl
> file
>
Sure. You declare the parameter in the stylesheet as a top-level <xsl:param>
element. You supply the actual value of the parameter using the API or
command-line interface defined by your chosen XSLT processor.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list