This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Passing a parameter to an XSL document
- To: xsl-list at mulberrytech dot com
- Subject: Re: Passing a parameter to an XSL document
- From: Steve Tinney <stinney at sas dot upenn dot edu>
- Date: Tue, 08 Feb 2000 11:44:42 -0500
- References: <8525687F.00592B3C.00@D51MTA05.pok.ibm.com>
- Reply-To: xsl-list at mulberrytech dot com
menkell@us.ibm.com wrote:
>
> I would like to pass the name of the xml document(en_US.xml) to be used in
> this xsl segment. Java or javascript.
>
> <xsl:if test="document('en_US.xml')/locale/*[name()=$myKey]">
>
> Any ideas?
See the XSLT spec under xsl:param, and also consult the documentation
for your XSL processor to determine how to pass arguments into a script.
Steve
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list