I have verified that the documents and stylesheets directory are in the ROOT directory under webapps.
Still no success! Any ideas?? Thanks so much. Vishal Khatnani wrote: > > I did the matching of all xml documents in the documents directory... > > <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> > > but when I point my browser to: > > http://localhost:8080/documents/file.xml > > I get a blank page. Im using netscape 4.75. When I go to view source I can see the >actual xml code but it's just not being passed to cocoon! > > Ive tried the samples, and they seem to work. > > What can I do? Please help, > Thanks, > > Luca Morandini wrote: > > > > 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]> > > -- > --------------------- > 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]> -- --------------------- 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]>