cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorenzo De Sio <l.de...@w4b.it>
Subject R: How to handle xml-fragment from db
Date Tue, 12 Nov 2002 13:25:26 GMT
Did you try:

	<esql:get-columns/>

coupled with

	<xsl:value-of select="column_name" disable-output-escapign="yes"/>


?

L.
-----Messaggio originale-----
Da: Robert Sösemann [mailto:robert.soesemann@gmx.de]
Inviato: martedì 12 novembre 2002 13.44
A: cocoon-users@xml.apache.org
Oggetto: How to handle xml-fragment from db


Hey,

who can help to solve the following problem?

In my relational db I have a column with XHTML fragments and want to bring
it into my cocoon pipline the following way.

DB ROW CONTENT:
-----------------------
...<P>foobar</P><B>....

GENERATOR:
---------------
XSP that extracts this rows value by
...
<TXT>
<esql:get-string column="i.text"/>
</TXT>

TRANSFORMER:
--------------------
XSL that tries to obtain this:
...
<TD>
        <xsl:value-of select="TEXT/."/>
</TD>

THE RESULT THAT I WANT:
---------------------------------
...
<TD>
        ...<P>foobar</P><B>....
</TD>

WHAT I GET INSTEAD:
---------------------------
...
<TD>
        &lt;P&gt;.... <--- only escaped text
</TD>
...

I also tried to use <esql:get-xml column="i.text"/> and <xsl:text
disable-output-escaping="yes">. But without success. Whats wrong???



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message