This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: using <xsl:param> with vbscript variable


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]