Hi!

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

For example, I have documents like this:

  doc.de.xml
  doc.fr.xml
  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"/>
      }
      <map:serialize/>
    </map:match>
  </map:act>

Is something like this possible?

Thanks in advance,
  Alex

-- 
Alexander Nofftz, Leverkusen, Germany, EU, Terra, Solar System
[EMAIL PROTECTED] --- http://www.AlexNofftz.de/
Jabber: [EMAIL PROTECTED] (Jabber?! http://de.wikipedia.org/wiki/Jabber)

Attachment: signature.asc
Description: Digital signature

Reply via email to