You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Shakuntala Rucktooa <S....@student.umist.ac.uk> on 2001/06/27 12:28:28 UTC
Creating XML files using normal Java Servlets?
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
Re: reg..fp taglib
Posted by java guru <ja...@yahoo.co.in>.
Will it be available in future?..any idea?
Thanks
--- Jeremy Quinn <je...@media.demon.co.uk> wrote: >
At 2:17 PM +0100 27/6/01, java guru wrote:
> >I see people suggesting fp taglib..but also
> >complaining about it...
>
> The FP TagLib is not available for Cocoon 2 yet.
>
> regards Jeremy
> --
>
>
___________________________________________________________________
>
> Jeremy Quinn
> Karma Divers
>
> webSpace Design
>
> HyperMedia Research Centre
>
> <ma...@mac.com>
> <http://www.media.demon.co.uk>
> <phone:+44.[0].20.7737.6831>
> <pa...@sms.genie.co.uk>
>
>
---------------------------------------------------------------------
> 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:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@xml.apache.org>
>
____________________________________________________________
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: reg..fp taglib
Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 2:17 PM +0100 27/6/01, java guru wrote:
>I see people suggesting fp taglib..but also
>complaining about it...
The FP TagLib is not available for Cocoon 2 yet.
regards Jeremy
--
___________________________________________________________________
Jeremy Quinn Karma Divers
webSpace Design
HyperMedia Research Centre
<ma...@mac.com> <http://www.media.demon.co.uk>
<phone:+44.[0].20.7737.6831> <pa...@sms.genie.co.uk>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
reg..fp taglib
Posted by java guru <ja...@yahoo.co.in>.
HI.,
I am working with c2 and I have requirement to read
xml file from disk, modify nodes from db and write it
back to the disk....This is part of a web app.
I see people suggesting fp taglib..but also
complaining about it...
Anyone please advice whats best and also point some
examples...
Appreciating ur help
____________________________________________________________
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Creating XML files using normal Java Servlets?
Posted by java guru <ja...@yahoo.co.in>.
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
<S....@student.umist.ac.uk> 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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>