|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Using URL parameters in XSL
You need to extract the relevant components of the URL in the calling application, and pass them from the application to the XSLT code as stylesheet parameters. Michael Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Julian Wood > Sent: 11 August 2003 05:06 > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: Using URL parameters in XSL > > > 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








