View Single Post
  #1 (permalink)  
Old November 12th, 2009, 07:00 PM
b.preetam b.preetam is offline
Registered User
 
Join Date: Nov 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing xsl variable in hyperlink querystring

Hi,
I am coding in xsl which will be later transformed to html
I need to pass more than one xsl variable values in hyperlink, i am facing issues while seperating the two variable names with '&'
i tried using & and &, in both case i get & in between of two variables in source view after transforming to html.

code for hyperlink-
<xsl:attribute name='href'>www.testurl.com/sg/show.aspx?p1=<xsl:value-of select="pass1"/>&p2=<xsl:value-of select="pass2"/></xsl:attribute>
www.testurl.com/sg/show.aspx?p1=<xsl:value-of select="pass1"/>&p2=<xsl:value-of select="pass2"/>
</a>

is there any way to get rid of & in url? Thanks in advance.

Regds,
PB
Reply With Quote