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

Re: Using URL parameters in XSL

Subject: Re: Using URL parameters in XSL
From: Mukul Gandhi <mukulw3@xxxxxxxxx>
Date: Sun, 10 Aug 2003 21:40:11 -0700 (PDT)
xml url parameters
Hi Julian,
 i don't know whether it will really be possible to
get parameter value as you want. But i can think of an
alternative approach. You can create another XML file
for e.g. param.xml having something like --

<?xml version="1.0" encoding="UTF-8"?>
<param>3</param>

In your XSL you can use document() function to access
param.xml and the <param> tag's value..

Regards,
Mukul

--- Julian Wood <woodj@xxxxxxxxxxx> wrote:
> Hi,
> 
> I'm trying to gain access to the URL parameters used
> to load an xml 
> file. For instance, can robin.xsl, used to process
> batman.xml, get the 
> imageNum parameter in its URL?
> 
> http://bla.bla/batman.xml?imageNum=3
> 
> My xsl just needs this one param set (ie. equivalent
> to <xsl:param 
> name="imageNum">3</xsl:param>)
> so that it can conditionally process. This has to be
> local (ie no cgi 
> allowed to write the stylesheet, as was discussed
> before on this list). 
> I've looked high and low for this, but I can't find
> out how to retrieve 
> the URL for manipulation. I've also looked into how
> to potentially 
> manipulate the stylesheet with javascript, but this
> happens after the 
> page has been transformed, and thus is too late.
> 
> Thanks for any help,
> 
> J
> 
> --
> Julian Wood
> Learning Commons, University of Calgary
> 
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

 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.