This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: using <xsl:param> with vbscript variable
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] using <xsl:param> with vbscript variable
- From: Nicholas Pearse <ngnpearse at yahoo dot co dot uk>
- Date: Thu, 7 Jun 2001 15:46:11 +0100 (BST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
Pass the param value as a node in the source tree.
Extract it in the XSL
xmlis
<root>
<myval>26</myval>
</root>
xslis
<xsl:param name='myvariable'><xsl:select
value-of="//myval"/></xsl:param>
then use as $myvariable which will be replaced with 26
can't rememeber if you need to use {} or not or the $
or not, have a go anyhowslike
i fink so!
--- Howard Lim <Howard.Lim@US.NET56.net> wrote: > how
to pass vbscript variable as a param using
> <xsl:param> to XSL file ???
>
> Is this the right way???
> i have the following code in my asp code that call
> the XML and XSL file and
> display them:
> <%path="c:\mydir\"%>
> <xsl:param name = "path" select = "<%=path%>" />
>
> and, i have the following in my XSL file:
> <xsl:value-of select="item[$path]"/>
>
> can somebody please help me to use <xsl:param>
> correctly. Thank you.
>
> Howard
> howard.lim@us.net56.net
>
>
>
> XSL-List info and archive:
> http://www.mulberrytech.com/xsl/xsl-list
>
=====
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list