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

michi at wyona.com michi at wyona.com
Mon Feb 11 22:05:57 CET 2008


Author: michi
Date: 2008-02-11 22:05:57 +0100 (Mon, 11 Feb 2008)
New Revision: 31660

Modified:
   public/yanel/trunk/src/contributions/resources/resource-creator/yanel-htdocs/doc/index.html
Log:
examples added

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 20:50:03 UTC (rev 31659)
+++ public/yanel/trunk/src/contributions/resources/resource-creator/yanel-htdocs/doc/index.html	2008-02-11 21:05:57 UTC (rev 31660)
@@ -48,6 +48,34 @@
     </dl>
 
     <h2>Examples</h2>
-    <p><b>...</b></p>
+    <p><b>Make all resources which have the CreatableV* interface implemented available for creation of corresponding instances</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:resource-config>
+</pre>
+
+    <p><b>Make only specific resources (e.g. file and xml) available for creation of corresponding instances</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="file" namespace="http://www.wyona.org/yanel/resource/1.0">
+            &lt;rc:display-name>Asset (Upload File)&lt;/rc:display-name>
+          &lt;/rc:resource-type>
+
+          &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: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