Web Development

How to assign dynamic value in href in xsl

Sometimes It makes confusing to assign dynamic value in link tag in xsl. Here is solution you can use it in your xsl program:

href="http://location/yourPage.jsp?param={urlD:decode(paramVariable)}" 

Normally we can assign a value in textBox in xsl by following code

value="{urlD:decode(//paramVariable)}"

And also can assign a value in label/span or something else by following code

xsl:value-of select="urlD:decode(//paramVariable)" // should be include in tag format
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s