cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <>
Subject RE: ESQL Return Values & Attributes
Date Sat, 29 Sep 2001 12:34:57 GMT
You probably want to do:

       <xsp:attribute name="href"><esql:get-string column="name"/></xsp:attribute>

-----Original Message-----
From: Luke Reeves []
Sent: Saturday, September 29, 2001 12:18 AM
To: ''
Subject: ESQL Return Values & Attributes

I've been building a site using Cocoon, and the ESQL tag library has blown me away, really
cool stuff.  For most of my code I do
    <esql:query>select id,name,shortname,homepage from projects order by name</esql:query>
          <catshort><esql:get-string column="shortname"/></catshort>
          <catlink><esql:get-string column="homepage"/></catlink>
          <catname><esql:get-string column="name"/></catname>
Building the site based on data encapsulated by XML tags.  But many times, I'll want:
  <a href=" <esql:return value here/>">
Now obviously that won't work.  But I do want to be able to access the SQL data from an attribute
of a tag; otherwise my XSL sheets
grow and grow as I break a complex single tag into multiple tags to handle little pieces of
data everywhere.  Any ideas?  Thanks in
        Luke Reeves, Director of Development
        Oceanlake Commerce Inc.

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