resource-exists selector re testing the path relative to the sitemap from it's being called.
Let me give an example:
Let's say we have a sitemap and from there another sub-sitemap mounted within some directory,
context (e.g. cocoon)
|
+-- sitemap.xmap
|
+-- foo
|
+-- sub-sitemap.xmap
|
+-- bar
|
+-- file1.xml
|
+-- file2.xmlCurrently to test files from within the *sub-sitemap* requires the following sitemap snippet
<map:select type="resource-exists"> <map:when test="foo/bar/file1.xml">
but wouldn't it make more sense to have
<map:select type="resource-exists"> <map:when test="bar/file1.xml">
which means the path is relative to the actual sitemap? Or am I overlooking something?
WDYT?
Michi
-- Michael Wechner Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://cocoon.apache.org/lenya/ [EMAIL PROTECTED] [EMAIL PROTECTED]
