cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mansour Al Akeel <mansour.alak...@gmail.com>
Subject Path selector - Cocoon 2.2.
Date Wed, 12 Dec 2012 20:42:05 GMT
Hello all,

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

C:\repo\english\dir_1

C:\repo\english\dir_2

C:\repo\english\dir_3

C:\repo\english\dir_4


C:\repo\french\dir_1

C:\repo\french\dir_2

C:\repo\french\dir_3

C:\repo\french\dir_4


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

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

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message