On Wed, 30 May 2001, Antonio Parolini wrote:

> Sorry if this was a stupid question... but i'll be gald if someone could
> help me out on this, even if it's to tell me to read de faq.
> :)

I'm not that familiar with C1 but I think you have to use bridge uility
methods to convert your Nodes into SAX events. Have a look at the class
org.apache.cocoon.xml.dom.DOMStreamer.

Giacomo

>
> So is the org.w3c.dom.Node Interface still supported in Cocoon 2 as a bean
> return value ?
>
> - Tony
>
> > -----Original Message-----
> > From: Antonio Parolini [mailto:[EMAIL PROTECTED]]
> > Sent: segunda-feira, 28 de maio de 2001 12:51
> > To: [EMAIL PROTECTED]
> > Subject: upgrade my beans from c1 to c2
> >
> >
> > Hi there,
> >
> > In Cocoon 1.8.x, my application use beans that return a DOM Node Object.
> >  public Node foo(){..};) and I call them from my XSP page like
> > <xsp:expr>mybean.foo()</xsp:expr>
> >
> > Now I would like to upgrade this for Cocoon 2, but I'm not sure whether
> > Cocoon2 will support this Node interface, since I'm avare that it uses the
> > Sax document model.
> >
> > Do I need to create a new class that supports the XML Frament
> > interface for
> > this and  return it insteed of Dom nodes ?
> >
> > thanks,
> >
> > - tony
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
>


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

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

Reply via email to