Nils Leßmann wrote:
Hi!
How can I use xml-output from java-classes in my xsps? I have a class,
say Foo and my logicsheet inserts something like
<xsp:expr>Foo.showData()</xsp:expr>
in my xsp. The output from Foo is then escaped and all my <tags> end up
in &lt;tag&gt;... I really want to put the heavy logic into my own classes, away from the
xsp – is that possible somehow?
Either you could use the util logicsheet or -- preferred in your scenario -- implement the org.apache.cocoon.xml.XMLizable / org.apache.avalon.excalibur.xml.XMLizable interface. Both contain only a method toSAX(Contenthandler). If your class creates a org.w3c.dom.Node / Document you may want to look at e.g. DOMStreamer

Chris.

--
C h r i s t i a n H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>



Reply via email to