cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <>
Subject RE: Tags: Passing dynamically generated values for parameters
Date Fri, 05 Apr 2002 00:57:30 GMT

1. <xsl:variable name="class"/> in the XSLT below declared but never
2. Study any logichsheet which comes with cocoon (request.xsl will do)
for a "how to pass a parameter to the logichseet tag".

Perform these exercises:

1. Translate your XSP page with your logicsheet using command-line
Xalan. Study the result.
2. Translate result of the step one with the xsp.xsl "core XSP"
stylesheet from the Cocoon source. Study the result.

There is also some documentation on the Cocoon site for the logicsheet
writers, also I don't know will it help you or not.


-----Original Message-----
From: Sreedhar Chintalapaty [] 
Sent: Monday, March 04, 2002 6:05 PM
To: Cocoon Users
Subject: Tags: Passing dynamically generated values for parameters

I am stuck for the last two days, and having scourged the newsgroup
postings, I think a direct appeal is okay... 
My entire project revolves around being able to do something like this,
and my go-live date is nearing, so please, h-e-l-p.
The problem is this:
I have a custom logic sheet with a method called list-people. It takes
in a parameter called "class", and calls the appropriate helper class to
do its stuff. The tag code looks like this:
<xsl:template match="gvsdb:list-people"> 
    <xsl:variable name="class"/>
In an xsp file called people.xml, I call this tag to populate a table,
like so:    
<gvsdb:list-people class="Singer"> 
This works fine.
Now I try (in vain) to make this dynamic by getting the value of "class"
from an identically named request parameter. I tried a bunch of options,
such as:
<xsp:element name="gvsdb:list-people">
    <xsp:attribute name="class">
            <xsp-request:get-parameter name="class"/>
This one fails! Instead of executing the tag, it merely writes it out to
the output as
<gvsdb:list-people class="Singer"> 
How do I make this work and populate the table?
Best Regards, 

Sreedhar Chintalapaty 
A computer is like an Old Testament god, with a lot of rules and no
mercy - Joseph Campbell

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message