Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 79256 invoked by uid 500); 20 Nov 2001 15:04:20 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 79244 invoked from network); 20 Nov 2001 15:04:20 -0000 Message-ID: <20011120150422.97997.qmail@web14504.mail.yahoo.com> Date: Tue, 20 Nov 2001 15:04:22 +0000 (GMT) From: =?iso-8859-1?q?Jeremy=20Aston?= Reply-To: jez@pigbite.com Subject: RE: [c2] Lost in sub-folders To: cocoon-users@xml.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1695885064-1006268662=:97536" Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --0-1695885064-1006268662=:97536 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi Alex Try 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 wrote: 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 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!. --0-1695885064-1006268662=:97536 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit

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!. --0-1695885064-1006268662=:97536--