doug, andreas, thanks for the help!

Doug Chestnut wrote:
2 questions:

the 1.2 docs mention both "sitemap.xmap" and "publication-sitemap.xmap". what are they both for? is this distinction still used in 1.4, or does everything go into sitemap.xmap?

publication-sitemap.xmap was moved into sitemap.xmap in 1.4

ah, that's good to know.

Andreas Hartmann wrote:
how do i use the fallback mechanism? i find the syntax very confusing and inconsistent. sometimes it's "fallback:///somefile" (which makes sense to me), and sometimes it's "{fallback:somefile}" which does not.

That's the old implementation as an input module. You don't have to
use it.

also good to know. :-D

Doug Chestnut wrote:
Try using the template source factory instead of the input module (with out the brackets). I just tried this in a pub that uses another pub as a template the uses the default pub as a template:

<map:mount src="fallback:///sitemap.xmap" uri-prefix=""
 check-reload="yes" reload-method="synchron"/>

This froze up my jetty instance though because I put it into mypub/sitemap.xmap which caused an endless mounting loop.

Try using the template-fallback source factory if you want to only look at ancestor pub template resources. Sorry, no documentation yet other than a mention of the idea here http://lenya.apache.org/1_4/reference/publication-templating/index.html#XSLT+Include+and+Import

yuck. now that was really stupid of me....
the template-fallback:// protocol works nicely. for the record, here is my working sitemap:

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
  <map:pipelines>
    <map:pipeline>
      <map:match pattern="**">
        <map:mount
             src="template-fallback:///sitemap.xmap"
             uri-prefix=""
             check-reload="yes"
             reload-method="synchron"
        />
      </map:match>
    </map:pipeline>
  </map:pipelines>
</map:sitemap>


thanks!

jörn



--
"Open source takes the bullshit out of software."
        - Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736

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

Reply via email to