Hi,

I think I can rule out CInclude, I probably need to convert my Generator
into a Serializer (since there seems to be no contentHandler.rawXMLData(..)
method in SAX).

Can someone in the know point me to the 'how to write a serializer'
documentation?
(Navigating around the Cocoon documentation is not easy, I even have the
book but that doesn't help).

Thanks

Chris
-=-=-=



-----Original Message-----
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday 26 November 2002 12:00
To: [EMAIL PROTECTED]
Subject: Re: output XML


On Tuesday 26 November 2002 11:43, Shaw, Chris wrote:
>. . .
> CInclude is not yet on my 'explored' list.
> But in a nuthsell you auto-generate an xml file which then lists which xml
> files you want to include, which is then sent back to Cocoon to process?

That's it.

> If this is the case then I don't think it will work because some of the
> files are only available server side and are fetched using RMI - therefore
> on the client side they only exists in memory.

Not sure if I understand exactly what's happening here...If Cocoon has to 
fetch XML files through RMI and insert their content into XML streams, what 
you need is a Generator that gets the XML over RMI, parses it and makes it 
available as SAX events for the following pipeline components.

You could then use data provided by this Generator for anything, including 
inclusion by CInclude.

The usage scenario would then be
1. Client requests http://myserver/LogPipeline/xyz.xml
2. Generator gets the XML data of "xyz" over RMI (xyz is some form of 
identifier for the data, not necessarily a filename).
3. Generator parses the XML and generates SAX events.

>. . .
> I just need to figure out how to output XML as XML within XML!!!!!
>. . .

If you want to insert your RMI-XML into other XML without parsing the
RMI-XML 
(but I'm not sure if this is a good idea), I think the only way is to write
a 
Serializer that does this inclusion. Cocoon uses SAX events between 
components, so I think all other forms require parsing of the RMI-XML.

-Bertrand

---------------------------------------------------------------------
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]>

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.


---------------------------------------------------------------------
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