cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naquin, Beth" <>
Subject RE: problem with dynamic parameters in XSP + ESQL
Date Fri, 16 Aug 2002 17:51:05 GMT
I think I did something similar with a stylesheet.  I'm not sure if this is
quite what you want, but here's what I did:
I had a logicsheet that used esql which results in xml like this:
This was to go in a table like:
PIN            Info                More
1111        info                    more
2111        info1                   more2
where each entry in the pin column is a link to more detail for that pin
I made the table rows and the links with this xsl stylesheet:
<!-- Format each row of a generic Data Table -->
    <xsl:template match="row">
         <xsl:for-each select="./child::*">
         <!-- make pin column a link to the person data page -->
         <xsl:when test="name()='pin'">
          <td align="right">
           <xsl:attribute name="href">
     <!-- text that will be the link -->
           <xsl:value-of select="." />
       <td align="right"><xsl:value-of select="." /></td>

 -----Original Message-----
From: Georg Spar []
Sent: Friday, August 16, 2002 9:03 AM
Subject: problem with dynamic parameters in XSP + ESQL

Hash: SHA1
Hi @ll,
I 've got a problem with dynamic parameters in an XSP-ESQL-Combined
What I want to do:
I just want to write a dynamically generated XSP-Page which put out
the results of an ESQL-Query in a html-table. Each row of the table
should have one <td>-tag with a link to another XSP-Page, where the
user can view the whole entry of the database, and a few other
<td>-tags only to inform the user.
In a scripting language like PHP this could be done very simple, the
link look like that:
http://show.xsp?mid <http://show.xsp?mid> =<? $mid ?> where $mid is the
specific ID of the
entry in the database-table 
How is this be done in Cocoon? 
I tried several ways, first I simply tried to put the string in the
href-parameter of <xsp-session:encode-url>, but in a tag you can't
use a '<'-Sign, so the esql-variable can't be put in.
Then I tried some substitutions with XSL-Templates, doesn't work to.
Then I  want to use actions, but the result-page does not contain any
So I'm very confused now. Can somebody help me, please?
Thanks for every idea
PS: @Christian Haul: I've solved the last problem on my own. There
was no problem with ESQL and nested queries, the only problem was
that Cocoon starts counting esql-fields with "1" and not with "0" ;-)
Version: PGPfreeware 7.0.3 for non-commercial use <
<> >

View raw message