Subject: [xsl] Client-side XSLT processing by browsers From: "JJ Merelo" <jjmerelo@xxxxxxxxx> Date: Sun, 27 Aug 2006 14:20:29 +0200 |
Hi, I have been looking for info on using the XSLT processors in browsers, namely Firefox and Opera. They seem to work well (although, if you use them on the client side, Firefox requires the extension .xhtml to apply xslt properly), but the problem I have found is that the only way to pass parameters to the XSLT stylesheet is using it via Javascript. What I want to do is something like this: process a file locally using filename.xhtml?param1=value1;param2=value2 and so on with filename.xhtml having: <?xml-stylesheet href="stylesheet.xsl" type="text/xsl"?> and, in stylesheet.xsl <xsl:param name='param1'> on the XSLT stylesheet. I have tested in in Firefox and Opera, and it does not seem to pick up the parameters. Is there any other way of passing params to that stylesheet? Or at least, a way that works? What I want to do is to present different content depeding on the way it's called. For instance, calling filename.xhtml?mode=index would just return the <h2> tags and so on.
Thanks for any answer! JJ
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: Sort before paging, Giancarlo Rossi | Thread | Re: [xsl] Client-side XSLT processi, Ragulf Pickaxe |
RE: [xsl] Why no namespace node Kin, Michael Kay | Date | Re: [xsl] Why no namespace node Kin, Florent Georges |
Month |