Vishal, well, you must have a transformation declaration in your pipeline... but you could choose it dynamically, based on the browser type.
There are example on this in the Cocoon doc (though I never tried them :( ). Best regards, P.S. Since I think this matter may be helpful to others, I cc-ed this message to the list; please, do the same with your messages. --------------------------------------------- Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html --------------------------------------------- > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 08, 2002 9:48 PM > To: [EMAIL PROTECTED] > Subject: Re: sitemap > > > thank you very much! very helpful. > > In the case where I have declared in my xml file different > stylesheets (e.g. if wap request then wap.xsl, if web request > then web.xsl, etc.) ... then I don't need to declare this: > > <map:transform src="stylesheets/{1}.xsl"/> > > right? > > > thanks, > > > Luca Morandini wrote: > > > > Vishal, > > > > this one matches every XML (like foo.xml or bar.xml) and transform them > > using a stylesheet with the same name (foo.xsl, bar.xsl). > > > > <map:match name="wildcard" pattern="*.xml"> > > <map:generate type="file" src="documents/{1}.xml"/> > > <map:transform src="stylesheets/{1}.xsl"/> > > <map:serialize type="html"/> > > </map:match> > > > > Of course, XMLs should be in the documents directory and XSLs in the > > stylesheet one, both under the sub-sitemap root. > > > > Mind, it doesn't match directories, like in "foo/bar.xml"; this could be > > done using a different matcher... but you got the idea, I hope. > > > > Best regards, > > > > --------------------------------------------- > > Luca Morandini > > GIS Consultant > > [EMAIL PROTECTED] > > http://utenti.tripod.it/lmorandini/index.html > > --------------------------------------------- > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > Sent: Friday, February 08, 2002 9:28 PM > > > To: [EMAIL PROTECTED] > > > Subject: sitemap > > > > > > > > > Hi, > > > > > > Could you send me an actual sitemap config example that matches > > > all xml files? > > > > > > Thanks, > > > > > > > > > -- > > > --------------------- > > > Vishal Khatnani > > > ESIT Group, x40727 > > > Sun Microsystems Inc. > > > Broomfield, Colorado > > > --------------------- > > > > > -- > --------------------- > Vishal Khatnani > ESIT Group, x40727 > Sun Microsystems Inc. > Broomfield, Colorado > --------------------- --------------------------------------------------------------------- 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]>