xsl-list
[Top] [All Lists]

[xsl] Client-side XSLT processing by browsers

2006-08-27 05:20:50
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>