Hello everyone,

I have xml fragments of data in a column of a table in a database and I
want to format the data and put it on a web page.

I can't make it work. The current approach I use is maybe not the right
one. Can you advise please ?

Here's how I try to do it and why I'm failing : 

I'm using 2.1.11

I make my sql request from a java class and then from a flowscript I
send the result to the pipeline which handles presentation stuff :

cocoon.sendPageAndWait("result.jx",{"sqlresult" : sqlresult });

And finally, in the jxtemplate I loop through the sql results :

<jx:forEach var="res" items="${sqlresult.rows}">
        <item>${res.xmlstring}</item>
</jx:forEach>

I'd except to have 
        <item>
                <name>martin</name>
                <number>123213</number>
        </item>

And then the next step of the pipeline, an xstl stylesheet, would have
templates to handle the presentation of the <item> element and its
childs...

BUT the jxtemplate escapes the xml tags, he replaces < by &lt; and > by
&gt; so the xsl stylesheet can't present the data  

So how can I make things work ?

Thanks

Philippe


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to