cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gou...@osmosis.gr
Subject Re: HTML tags in database results
Date Thu, 23 Sep 2004 06:31:25 GMT


hi leona

if i hva understand you 

your text is stored in your database with html markup tag

then use this

<esql:get-xml column="textBlock_Description" root="textBlock_Description"/>

where column attribute match your database table name
and root the root element will be created including your text.


--stavros


On Wed, 22 Sep 2004, Leona Slepetis wrote:

> Hi All,
> 
> I have a problem with displaying HTML tags in database output through
> Cocoon.
> 
> What I have is:
> <xsl:template match="FrameContent">
> ... <!-- a working query in esql -->
>   <table>
>     <esql:row-results>
>       <xsp:logic>
>         String desc1 = <esql:get-string column="description1" />;
>       </xsp:logic>
>     </esql:row-results>
>     <tr>
>       <td>FOO1<xsp:expr>desc1</xsp:expr>FOO2</td>
>     </tr>
>   </table>
>  ... <!-- other code and end query -->
> </xsl:template>
> 
> When this is displayed, it shows the contents of desc1, including HTML
> tags, which are not properly interpreted, e.g.,
>   FOO1<b>my text</b>FOO2
> 
> when I really want to see is,
>   FOO1my textFOO2
> where "my text" is in bold.
> 
> Is there some way to have these tags properly recognized?
> 
> Thanks,
> Leona
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


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


Mime
View raw message