cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Dynamically passing different xml file to cocoon.
Date Mon, 11 Feb 2002 14:14:04 GMT
> From: Anil_Kandula [mailto:Anil_Kandula@hts.satyam.com]
> 
> Hi Vadim,
> 
> 	This is the snippet from my sitemap.xmap for converting
> girotable.xml to pdf file.
> 	<map:match pattern="girotest/girotable.pdf">
> 	<map:generate src="girotest/girotable.xml"/>
> 	<map:serialize type="fo2pdf"/>
> 	 </map:match>
> 
> But my requirement is such that my generate xml file will keep on
changing.
> i.e. for instance <map:generate src="girotest/girotable1.xml"/> then
> <map:generate src="girotest/girotable2.xml"/> then <map:generate
> src="girotest/girotable3.xml"/>...similarly my src file is to be
dynamically
> picked up.

There are lots of samples showing this of. Have you seen them?

 	<map:match pattern="girotest/*.pdf">
 	<map:generate src="girotest/{1}.xml"/>
 	<map:serialize type="fo2pdf"/>
 	 </map:match>


Vadim

> 
> I hope i am clear. I'll try to be more clear if u find any problem
with
> this.
> 
> Thanks for the response.
> 
> Anil.K
> 
> 
> > ----------
> > From: 	Vadim Gritsenko[SMTP:vadim.gritsenko@verizon.net]
> > Reply To: 	cocoon-users@xml.apache.org
> > Sent: 	Monday, February 11, 2002 6:47 PM
> > To: 	cocoon-users@xml.apache.org
> > Subject: 	RE: Dynamically passing different xml file to cocoon.
> >
> > > From: Anil_Kandula [mailto:Anil_Kandula@hts.satyam.com]
> > >
> > > Hi All,
> > > 	CocoonServlet actually reads the xml file to be converted from
> > > sitemap.xmap. Is there any way to dynamically pass a different xml
> > file to
> > > CocoonServlet everytime.
> >
> > Can you elaborate a bit more on this? I don't get it.
> >
> > Vadim


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