I've had a lot of success using xsp to instantiate my java classes and subsequently call toSAX (formerly toDOM) from the xsp page. In fact this is basically what I use xsp for (with subsequent xslt processing of course). Although the xml is usually produced internally within my classes, some do read it from a file and output it when toSAX (or DOM) is called.
I'm happy to share some code with you if you need it. Regards, Anthony Aldridge Lead Application developer Managed Intranet Hosting CSC JPMorganChase Personal GDP: 325-8338 MIH Hotline: 876-1300 Peter Royal <[EMAIL PROTECTED]> on 13/11/2001 20:04:37 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: Generators.. was: Re: SV: What is Cocoon good for??? On Tuesday 13 November 2001 02:53 pm, you wrote: > having code within your XSP page that reads XML from some external source > (outside the page) and outputting it > > > Seems to me like that type of code is best done as a separate generator of > its own. > > Others agree? disagree? I agree. I only use XSP for instances where I want to use logicsheets. Otherwise I use the file generator if I want to sent a plain XML document that is on disk. For data from other sources, I've been moving towards making java objects that are XMLizable, and having a generator that just calls .toSAX on them. -pete -- peter royal -> [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]>