cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe LAPLANCHE" <philippe.laplan...@horus-si.com>
Subject RE: xml in string in jxtemplate
Date Fri, 18 Jul 2008 09:22:45 GMT
Thanks. This works perfectly.

-----Message d'origine-----
De : Christofer Dutz [mailto:christofer.dutz@c-ware.de] 
Envoyé : vendredi 18 juillet 2008 04:01
À : users@cocoon.apache.org
Objet : AW: xml in string in jxtemplate 


I use this since Cocoon 2.1.9 ... so I think this is simply not true ;-)



-----Ursprüngliche Nachricht-----
Von: Philippe LAPLANCHE [mailto:philippe.laplanche@horus-si.com] 
Gesendet: Donnerstag, 17. Juli 2008 08:55
An: users@cocoon.apache.org
Betreff: RE: xml in string in jxtemplate 

I just found this and from what I understand it will fix my problem

<jx:out value="Expression" xmlize="true"/>
On this page : http://wiki.apache.org/cocoon/JXTemplateGenerator 

But it says it will only work with cocoon 2.2

My only solution is to install cocoon 2.2 ?

Philippe


-----Message d'origine-----
De : Philippe LAPLANCHE 
Envoyé : jeudi 17 juillet 2008 17:31
À : users@cocoon.apache.org
Objet : xml in string in jxtemplate 


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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org

----------------------------------------------------------------------------
-----------
Orange vous informe que cet  e-mail a ete controle par l'anti-virus mail. 
Aucun virus connu a ce jour par nos services n'a ete detecte.






---------------------------------------------------------------------
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

---------------------------------------------------------------------------------------
Orange vous informe que cet  e-mail a ete controle par l'anti-virus mail. 
Aucun virus connu a ce jour par nos services n'a ete detecte.






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


Mime
View raw message