[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: URL parameters in xsl

Subject: Re: URL parameters in xsl
From: S Woodside <sbwoodside@xxxxxxxxx>
Date: Mon, 19 May 2003 18:55:45 -0400
url parameter s
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.