Archive

Posts Tagged ‘querystring’

Use querystring values in xsl

July 17th, 2009 Comments off

It’s just a small tip of the day. Sometime when you work with xsl you need to use querystring values for some processing or display. It’s very simple to use querystring values without posting them from server side code in your xml document.

On top of your xsl document just define a variable like this

<xsl:param name=qs-title/>

here title is a querystring variable and now you can use this xsl variable any where like this

<xsl:value-of select=$qs-title />
 

 

Is not it simple enough?

Categories: XSLT Tags: ,