cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vishal Khatnani <Vishal.Khatn...@Sun.COM>
Subject Re: sitemap
Date Fri, 08 Feb 2002 21:10:34 GMT
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
>               lmorandini@ieee.org
> http://utenti.tripod.it/lmorandini/index.html
> ---------------------------------------------
> 
> > -----Original Message-----
> > From: Vishal.Khatnani@Sun.COM [mailto:Vishal.Khatnani@Sun.COM]
> > Sent: Friday, February 08, 2002 9:48 PM
> > To: lmorandini@ieee.org
> > 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
> > >               lmorandini@ieee.org
> > > http://utenti.tripod.it/lmorandini/index.html
> > > ---------------------------------------------
> > >
> > > > -----Original Message-----
> > > > From: Vishal.Khatnani@Sun.COM [mailto:Vishal.Khatnani@Sun.COM]
> > > > Sent: Friday, February 08, 2002 9:28 PM
> > > > To: l.moran@tin.it
> > > > 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

-- 
---------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message