Click to See Complete Forum and Search --> : How to use URL parameters in XSLT?


amiry
November 23rd, 2003, 07:02 AM
Hi,
For example - suppose my URL is:
www.mysrv.com/myPage.xml?sorttype=descending

and the xml file points to some appropriate xslt file.
I want to extract the value of 'sorttype' parameter in order
to make a proper use of the xsl:sort command.

The xslt runs by the client side on IE.

Thanks in advance!
-- Amir

professorX
November 25th, 2003, 01:42 AM
In xsl-file create param:
<xsl:param name="sorttype"/>

And now You can use this param:
<xsl:if test="$sorttype=(value)">
<xsl:value-of select="$sorttype"/>
<tagname tagattribute="{$sorttype}">