The second and third values need to be from a querystring using umbraco.library:RequestQueryString('page'). How can we do this because the values need to come from a querystring and needs to be in quotes. Somehow I couldn't figure it out.
Thanks Dan that's a good solution! We tried doing the umbraco.library:RequestQueryString('value1') in the select (everyting on a single line) of the xsl:with-param, but we couldn't get that to work.
Querystring value in attribute with XSLT
Hello,
A colleague of mine has an XSLT question and I don't know the answer so maybe someone here does :).
We got the following piece of XSLT:
This outputs the following html:
onclick="ChangeCritSurface('vloer')"
Now we want to have the following output:
onclick="ChangeCritSurface('vloer', 'waardeUitVorigeRadioButton', 'waardeUitVorigeVorigeRadioButton')"
The second and third values need to be from a querystring using umbraco.library:RequestQueryString('page'). How can we do this because the values need to come from a querystring and needs to be in quotes. Somehow I couldn't figure it out.
Thanks.
Jeroen
Hi Jeroen,
Set up your querystring values as variables:
Then use these in your XSLT like this:
Any good?
Thanks Dan that's a good solution! We tried doing the umbraco.library:RequestQueryString('value1') in the select (everyting on a single line) of the xsl:with-param, but we couldn't get that to work.
Jeroen
is working on a reply...