1. Unfortunately, i am not sure about this...but i
believe it can be done.
2. I have similar requirement, the way i am gonna
deal with that is thru patterns. C2 offers different
patterns serve from same resources(xml file or
xsp)..for example, i have put all my xsp in doc
folder..then i have two patterns in my sitemap (i)
html/* for all the html rendering (ii) pdf/* for all
pdf rendering...
In sitemap, these patterns would have same generator
but different transformer/serializer...
And when user choose for particular format, i simple
request the specific pattern url..
HOpe this helps...and please let me know if u guys
come-up with better approach..
****************************************************
--- Shakuntala Rucktooa
<[EMAIL PROTECTED]> wrote: > Hi,
>
> 1. Can I use normal Java Servlets instead of
> Producers or XSP to create my XML pages to work with
> Cocoon? If yes, where do I need to place them in the
> Cocoon file structure?
>
>
> 2. Say my XML page is as follows:
>
> <SUPPLIER>
> <NAME>sName</NAME>
> <ADDRESS>sAddress</ADDRESS>
> <PRODUCT>sProduct</PRODUCT>
> ....
> </SUPPLIER>
>
> I now want to give users the option of viewing in
> HTML/PDF. How can I apply different XSL to the same
> XML file, say when the user clicks on a particular
> button (View in HTML/View in PDF)?
>
> Thanks
> Hema
>
____________________________________________________________
Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>