Re: Passing a parameter to an XSL document

Subject: Re: Passing a parameter to an XSL document
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 8 Feb 2000 16:34:52 GMT
> 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]">

<xsl:param name="doc-file"/>
...
...
<xsl:if test="document($doc-file)/locale/*[name()=$myKey]">

then pass the parameter to your stylesheet with whatever mechanism
your system allows.

David


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


Current Thread