[Yanel-commits] rev 31661 - public/yanel/trunk/src/contributions/resources/resource-creator/yanel-htdocs/doc

michi at wyona.com michi at wyona.com
Mon Feb 11 22:23:32 CET 2008


Author: michi
Date: 2008-02-11 22:23:31 +0100 (Mon, 11 Feb 2008)
New Revision: 31661

Modified:
   public/yanel/trunk/src/contributions/resources/resource-creator/yanel-htdocs/doc/index.html
Log:
docu about suppressing resource config creation

Modified: public/yanel/trunk/src/contributions/resources/resource-creator/yanel-htdocs/doc/index.html
===================================================================
--- public/yanel/trunk/src/contributions/resources/resource-creator/yanel-htdocs/doc/index.html	2008-02-11 21:05:57 UTC (rev 31660)
+++ public/yanel/trunk/src/contributions/resources/resource-creator/yanel-htdocs/doc/index.html	2008-02-11 21:23:31 UTC (rev 31661)
@@ -77,5 +77,24 @@
       </yanel:custom-config>
     </yanel:resource-config>
 </pre>
+
+    <p><b>Suppress resource config creation when a new resource instance is being created. This can make sense if a pattern has been defined within map.rc-map (e.g. &lt;matcher pattern="/**.html" rcpath="/generic-xhtml-page.yanel-rc"/>)</b></p>
+
+<pre>
+    &lt;yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0">
+      &lt;yanel:rti name="resource-creator" namespace="http://www.wyona.org/yanel/resource/1.0"/>
+
+      &lt;yanel:custom-config>
+        &lt;rc:resource-types xmlns:rc="http://www.wyona.org/yanel/resource/resource-creator/1.0">
+          &lt;rc:resource-type name="xml" namespace="http://www.wyona.org/yanel/resource/1.0">
+            &lt;rc:display-name>Standard (HTML) Page&lt;/rc:display-name>
+            &lt;rc:create-resource-config>false&lt;/rc:create-resource-config>
+            &lt;rc:property name="mime-type" value="text/html"/>
+            &lt;rc:property name="source-mime-type" value="application/xhtml+xml"/>
+          &lt;/rc:resource-type>
+        &lt;/rc:resource-types>
+      &lt;/yanel:custom-config>
+    &lt;/yanel:resource-config>
+</pre>
   </body>
 </html>



More information about the Yanel-commits mailing list