Re: [xsl] URL parameters in xsl

Subject: Re: [xsl] URL parameters in xsl
From: S Woodside <sbwoodside@xxxxxxxxx>
Date: Mon, 19 May 2003 18:55:45 -0400
most XSLT processors will pick up a URL parameter if you set up the stylesheet to have an xsl:param of the same name, so,

<xsl:param name="uid"/>

at the top level of the XSLT. You can fill in a default value as well. Better to leave it blank and then use

<xsl:if test="$uid != ''">

to see if it's been filled in.

simon

On Monday, May 19, 2003, at 06:00 PM, Martin Lampen wrote:

Hi all, am a newcomer to xsl I desperately need a way to extract the uid parameter from a URL (eg. http://192.168.22.105/default.asp?uid=2) and use it as a variable for if statements within xsl.

I've tried everything and while I can write the uid to the xsl template I can't call it as a variable in if/match statement.

Please help! ;)

martin

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



-- www.simonwoodside.com -- 99% Devil, 1% Angel


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread