cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Billard <obill...@jouve.fr>
Subject Re: Query wrt rows returned from a database???
Date Wed, 19 May 2004 08:05:16 GMT
Hi Kim,

As <p>a
b
c
d
e
f
g</p> is strictly display-equivalent to <p>a b c d e f g</p>, I 
(personnaly) don't see any solution except using ESQL and put some logic 
in it, sorry.

--
Olivier

Kim toms wrote:
> After retrieving the results in a rowset from the SQLTransformer, I used
> the following fragments:
> 
>   <xsl:template match="sql:rowset">
>     <table border="1">
>       <tr>
>       <xsl:for-each select="child::sql:row[position()=1]/*">
> 	<th><xsl:value-of select="name(.)"/></th>
>       </xsl:for-each>
>       </tr>
>      <xsl:apply-templates/>
>     </table>
>   </xsl:template>
> 
>   <xsl:template match="sql:row">
>     <tr>
>     <xsl:for-each select="child::node()">
>       <td><xsl:value-of select="."/></td>
>     </xsl:for-each>
>     </tr>
>   </xsl:template>
> 
> To convert the results of the query into an HTML table.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message