cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Nofftz <>
Subject Content negiation / fallback if document not found
Date Fri, 13 Jan 2006 16:51:04 GMT

I want to do something like Apache Webserver's content negotiation using
MultiViews with Cocoon.

For example, I have documents like this:
  doc.xml    (default language)

And want to do something like this:

  <map:act type="locale">
    <map:match pattern="doc">
      try {
        <map:generate src="doc.{../language}.xml"/>
      } catch (FileNotFoundException e) {
        <map:generate src="doc.xml"/>

Is something like this possible?

Thanks in advance,

Alexander Nofftz, Leverkusen, Germany, EU, Terra, Solar System ---
Jabber: (Jabber?!

View raw message