cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robby Pelssers <>
Subject RE: Path selector - Cocoon 2.2.
Date Thu, 13 Dec 2012 11:10:28 GMT
All you need is a correct matcher:

 {1}: language: e.g. English | french
 {2}: folder: e.g. dir_1 | dir_2
<map:match pattern="repo/*/*.xml">
   <map:generate src="file:///c:/repo/{1}/{2}.xml"/>
   <map:serialize type="xml"/>

-----Original Message-----
From: Mansour Al Akeel [] 
Sent: Wednesday, December 12, 2012 9:42 PM
To: users
Subject: Path selector - Cocoon 2.2.

Hello all,

I am looking to select a path for a directory depending on language prefix. For example, let's
say I have









I have multiple matchers, for different type of documents. For example:

<matcher pattern="doc1/*.xml" >
<generator src=C:\repo\english\dir_1" /> ..

I would like to turn this into a matcher for both languages with two characters representation
of the language. For example:

en/doc1/*.xml AND fr/doc1/*.xml

How can I do selection the correct path with this ? In other words, use if else ? Is there
a current selector that helps in this ??

Thank you

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message