cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: pls help..xml topic: Can I pass a parameter to XML like this ...h ttp://localhost/xml/KPIList.xml?Boston
Date Mon, 17 Jul 2000 03:54:34 GMT
On Sun, 16 Jul 2000, Nick Tackes wrote:

> I am using a cocoon portlet in jetspeed where I specify an xml and
> corresponding xslt.
> I build an href link like this ...
> http://localhost/xml/KPIList.xml?Boston
> <http://localhost/xml/KPIList.xml?Boston> 
> where I want to pass a parameter into the same xml.  This time, however, I
> want the xslt to take this
> parameter and filter further based on its value.
> (incidentally, the link invokes cocoon directly, I did this by naming the
> file .cxml and setting up my web server to direcly run these mime types
> through cocoon.)
> So how do I pass a parameter to an XML/XSLT , and more importantly, how do I
> receive in the recieving document?

The simplest way is to use an HTTP request variable and to declare it in
your stylesheet using xsl:param. E.g.:


<xsl:param name="foo"/>

- donald

View raw message