Giacomo Pati wrote:

Vadim Gritsenko wrote:

[EMAIL PROTECTED] wrote:

+ * resource. A <code>nsmapping</code> parameter can be specified to point to a file containing lines to map prefixes
+ * to namespaces like this:
+ * </p>
+ * <p>
+ * prefix=namespace-uri<br/>
+ * prefix2=namespace-uri-2
+ * </p>


Just a quick one -- why configuration is not used, but properties file?


I couldn't think of an elegant way to parametrize more that one prefix/namespace pair as

 <map:parameter name="prefix.1" value="p"/>
 <map:parameter namespace.1" value="http://....."/>
 <map:parameter name="prefix.2" value="q"/>
 <map:parameter namespace.2" value="http://....."/>

wasn't really elegant. But if you have a good idea just throw it in :-)


Two ideas:

1) Use configure():
<namespace prefix="wd">http://apache.org/cocoon/woody/...</namespace>
2) Seen in recent commit in some other component:
<map:parameter name="namespace.wd" value="http://apache.org/cocoon/woody/..."/>


Is it better? :)

Vadim



Reply via email to