> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > >
<skipped/> > > > 2. > > Use Castor's marshalling capabilities: > > > > <some-items anAttr="aVal"> > > <xsp:logic> > > model.marshal(this.contentHandler); > > </xsp:logic> > > </some-items> > > This sounds perfect. You can use CastorTransformer from Cocoon scratchpad instead. It looks something like this: <some-items anAttr="aVal"> <castor:insertBean name="model" [mapping="mapping.xml"] /> </some-items> You'll find it here: xml-cocoon2\src\scratchpad\webapp\mount\castor\ Regards, Konstantin Piroumian > > > > Within the method I pass the contentHandler (wrapped into > > DocumentHandlerAdapter) to castor's marshaller before I perfom > mashal(obj). > > > > As A result the cinclude transformer (which I need) > complains about a > > Nullpointer exception. > > Make sure that model.marshal() does not call startDocument() and > endDocument() on the contentHandler. If it does, you should > strip these calls by wrapping contentHandler into the > IncludeXMLConsumer. > > This should work. Or we have a bug. > > Vadim > > > > > > Does anyone have a better Idea? Examples are welcome. > > > > Harald > > > > -- > > GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net > > > --------------------------------------------------------------------- > 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]>