cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: What's the equivalent of writing a Producer in C2?
Date Thu, 26 Apr 2001 14:23:14 GMT


"Maring, Steve" a écrit :
> 
> In C1.8 I wrote my own producers.  Specifically, I overwrote the
> getDocument() method and build my own DOM dynamically within this method.
> Not all of my XML was coming from files.
> 
> How do I do the equivalent of this in C2?  I can't seem to find references
> to this sort of thing in the docs.
> 
> -Steve
> Tarpon Springs, FL
> 
In C2, producers are called generators
(org.apache.cocoon.generation.Generator). The main difference is that
generators generate SAX events. You can reuse parts of your DOM-based C1
producers with the help of the DOMStreamer class that converts DOM trees
to SAX events.

-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

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


Mime
View raw message