cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wechner <michael.wech...@wyona.com>
Subject isCollection selector (or InputModule)
Date Wed, 28 Dec 2005 23:11:25 GMT
Hi

I am not sure if there already exists an "isCollection" selector

<map:match pattern="**"> 
  <map:select type="isCollection">
    <map:when test="content/{1}">
      <map:generate type="traversable" src="content/{1}" />
      <map:transform src="stylesheets/collection.xsl" />
    </map:when>
    <map:otherwise>
      <map:generate src="content/{1}" />
      ...
    </map:otherwise>
  </map:select>
  <map:serialize type="html"/>
</map:match>

any pointers appreciated.

Thanks

Michi

-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message