Passing parameters to XSLT from the URL

"JJ Merelo" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization http://groups.google.com
Message-ID <[email protected]>
Hi,
I'm trying to do this: I have an XML document with a XSLT stylesheet
attached,
--
<?xml version="1.0" encoding='ISO-8859-1'?>
<?xml-stylesheet href="tiendecilla-html.xsl" type="text/xsl"?>

<tienda>
--
<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:param name='seccion' />

<xsl:template match='/'>
  <html>
        <xsl:apply-templates />
  </html>
</xsl:template>

<xsl:template match='tienda'>
     <head><title><xsl:value-of select='nombre' /> (Generado por
tiendecilla-html-1.xsl)</title></head>
     <body>
        <h1><xsl:value-of select='nombre' /> Sección : <xsl:value-of
select='$seccion' />
</h1>
...
--
Which I call with this url:
file:///home/jmerelo/public_html/tutoriales/XSLT/tiendecilla.xml?seccion=Muebles

But it does not work; the param seccion does not get instantiated.
What's the problem? Does the XSLT processor in Mozilla handle params
only if they're sent by the server (I didn't try that, but, in any
case, I'd like to use it stand-alone) Should parameters be sent any
other way?

Thanks!

JJ
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.