cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Aston <jeremyas...@yahoo.co.uk>
Subject RE: [c2] Lost in sub-folders
Date Tue, 20 Nov 2001 15:04:22 GMT

 Hi Alex
Try
  <map:match pattern="index.html">
    <map:generate type="file" src="index.xml"/>
    <map:transform type="xslt" src="stylesheets/2html.xsl"/>
    <map:serialize/>
  </map:match>
  <map:match pattern="**/index.html">
    <map:generate type="file" src="{1}/index.xml"/>
    <map:transform type="xslt" src="stylesheets/2html.xsl"/>
    <map:serialize/>
  </map:match>
This is a quick thing so I haven't tried optomising it to one match construct but I think
you can do it...
Regards
Jeremy
 
  Alex Kachanov <alex@intadev.com> wrote:    <map:match pattern="">
     <map:redirect-to uri="index.xml"/>
   </map:match>    <map:match pattern="*.xml">
    <map:generate src="{1}.xml"/>    <map:transform src="stylesheets/2html.xsl"/>
    <map:serialize type="html"/>   </map:match>
this is the sitemap.xmap in the root folder of the web-site  
with best wishes
Alexander Kachanov 
-----Original Message-----
From: Jeremy Aston [mailto:jeremyaston@yahoo.co.uk]
Sent: 20 íîÿáðÿ 2001 ã. 21:40
To: cocoon-users@xml.apache.org
Subject: Re: [c2] Lost in sub-folders


Alex, 
What map:matches do you have in your sitemap to cope with this? 
Regards 
Jeremy 
  Alex Kachanov <alex@intadev.com> wrote: 

When I have the following files structure everything works fine:

index.xml
news.xml
products.xml

but when I move files to subfolders like:

/index.xml
/products/index.xml
/news/index.xml

those files stop working:

Looks like I have problems with paths.
But why?



with best wishes
Alexander Kachanov

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: 
For additional commands, e-mail: 



---------------------------------
Do You Yahoo!?
Get personalised at My Yahoo!.


---------------------------------
Do You Yahoo!?
Get personalised at My Yahoo!.
Mime
View raw message