Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

address bar variable help...

Status
Not open for further replies.

reflux

Programmer
Dec 28, 2003
1
0
0
AU
Is there a way to parse a variable from the address bar into the xsl?

I want to search through xml data, but dont want to use server side scripting for it...

I want to be able to do something like;
.../whatever.xml?search=something

...and then do something like;

<xsl:for-each select=&quot;artist/title&quot;>
<xsl:sort select=&quot;artist&quot; />
<xsl:if test=&quot;artist = search&quot;>

Obviously I want the above 'search' to be the search variable from the address bar...


Well any help would be greatly appreciated, thx...
 
Code:
<xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform&quot;>[/URL]
	<xsl:param name=&quot;search&quot;>default value</xsl:param>

<xsl:for-each select=&quot;artist/title&quot;>
<xsl:sort select=&quot;artist&quot; />
<xsl:if test=&quot;artist = $search&quot;>

Good luck,

Jordi Reineman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top