[Yanel-commits] rev 31218 - public/yanel/trunk/src/resources/directory/yanel-htdocs/doc

michi at wyona.com michi at wyona.com
Mon Feb 4 22:03:01 CET 2008


Author: michi
Date: 2008-02-04 22:03:01 +0100 (Mon, 04 Feb 2008)
New Revision: 31218

Modified:
   public/yanel/trunk/src/resources/directory/yanel-htdocs/doc/index.html
Log:
docu of collection resource fixed

Modified: public/yanel/trunk/src/resources/directory/yanel-htdocs/doc/index.html
===================================================================
--- public/yanel/trunk/src/resources/directory/yanel-htdocs/doc/index.html	2008-02-04 20:26:41 UTC (rev 31217)
+++ public/yanel/trunk/src/resources/directory/yanel-htdocs/doc/index.html	2008-02-04 21:03:01 UTC (rev 31218)
@@ -1,20 +1,60 @@
-<html>
+<?xml version="1.0"?>
+
+<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
-    <title>tbd</title>
+    <title>Collection/Directory resource</title>
+    <style>
+h2 {
+  font-size: 130%;
+  color:     #ffffff;
+  background-color: #525D76;
+}
+pre {
+  background-color: efefef;
+}
+    </style>
   </head>
   <body>
-    <h1>from-scratch</h1>
+    <h1>Collection/Directory resource</h1>
+
+    <h2>Overview</h2>
     <dl>
       <dt>Name:</dt>
-      <dd>tbd</dd>
+      <dd>directory</dd>
       <dt>Namespace:</dt>
-      <dd>tbd</dd>
+      <dd>http://www.wyona.org/yanel/resource/1.0</dd>
       <dt>UniversalName</dt>
-      <dd>tbd</dd>
+      <dd>&lt;{http://www.wyona.org/yanel/resource/1.0}directory/&gt;</dd>
       <dt>Description:</dt>
-      <dd>tbd</dd>
+      <dd>Collection/Directory/Folder resource</dd>
       <dt>Java Class:</dt>
-      <dd>tbd</dd>
+      <dd>org.wyona.yanel.impl.resources.collection.CollectionResource</dd>
     </dl>
+
+    <h2>Examples</h2>
+    <p><b>Overwrite the default XSLT</b></p>
+
+<pre>
+    &lt;yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0"&gt;
+      &lt;yanel:rti name="directory" namespace="http://www.wyona.org/yanel/resource/1.0"/&gt;
+
+      &lt;yanel:property name="default-xslt" value="/custom-default-xhtml.xsl"/&gt;
+      &lt;yanel:property name="mime-type" value="application/xhtml+xml"/&gt;
+
+    &lt;/yanel:resource-config&gt;
+</pre>
+
+    <p><b>Embed default XHTML view into some global layout</b></p>
+
+<pre>
+    &lt;yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0"&gt;
+      &lt;yanel:rti name="directory" namespace="http://www.wyona.org/yanel/resource/1.0"/&gt;
+
+      &lt;yanel:property name="xslt" value="/global.xsl"/&gt;
+      &lt;yanel:property name="mime-type" value="application/xhtml+xml"/&gt;
+
+    &lt;/yanel:resource-config&gt;
+</pre>
+
   </body>
 </html>



More information about the Yanel-commits mailing list