Vaduvoiu Tiberiu wrote:
Hi, I am having a problem mounting some sitemaps. Right now, for my
application I am using a single sitemap...that has become to
big...and for performance/mentainance reasons, I've decided to split
the big sitemap in smaller ones using mount.
...
in this case the first star represents if I'm working with preview or
live content, and the second is the language /en/ /fr/ etc.

so I decided that in the big sitemap I will write

<map:match pattern="*/*/">
>    <map:mount uri-prefix="" src="{2}/sitemap.xmap" />
> </map:match>

Shouldn't the above match pattern be something like pattern="*/*/**" ? Yours will only match URIs ending in the slash.


and in the en/sitemap.xmap file I write

<map:match pattern="*/index.html"> <map:aggregate element="root" label="source"> <map:part element="menu" src="cocoon:/menu.xml"/> <map:part element="document" src="cocoon:/{1}/index.xml"/> </map:aggregate>
>   <map:transform src="transformers/page.xsl">
    <map:parameter name="language" value="??"/>
>     <map:parameter name="developorlive" value="??"/>

I haven't used sitemap mounting a ton, but my understanding is that since you used uri-prefix="" in the map:mount call, it won't strip off any of the URI, and therefore the full URI will be passed to the sub-sitemap for matching. So in your subsitemap you should just be able to do

<map:match pattern="*/*/*/index.html">

...and have access to all the parameter parts.

I hope that helps, like I said I haven't used mounting much so I could be wrong about how the uri-prefix thing works.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to