RE: [xsl] URL parameters in xsl

Subject: RE: [xsl] URL parameters in xsl
From: "Hemi Kara" <hemi@xxxxxxxxxxxxx>
Date: Tue, 20 May 2003 15:53:42 +1200
Hi Martin,

My suggestion would be this:

1) Create a variable that holds the string after the = sign.
	<xsl:variable name="uidNum">
	<xsl:value-of select="substring-after(URL,'=')"/>

2) You can now use the variable in test
	<xsl:if test="$uidNum=1">.....then do something.....</xsl:if>
	<xsl:if test="$uidNum=2">.....then do something.....</xsl:if>

3) If you need the whole uid string then swap the [=] character for the [?]
character, and this will return [uid=2]

Hope this helps
Hemi Kara


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Martin Lampen
Sent: Tuesday, 20 May 2003 10:01 a.m.
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] URL parameters in xsl

Hi all, am a newcomer to xsl I desperately need a way to extract the uid
parameter from a URL (eg. 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! ;)


 XSL-List info and archive:

 XSL-List info and archive:

Current Thread