[Yanel-commits] rev 32714 - public/yanel/trunk/src/resources/xml/yanel-htdocs/doc

michi at wyona.com michi at wyona.com
Sat Mar 1 16:02:52 CET 2008


Author: michi
Date: 2008-03-01 16:02:51 +0100 (Sat, 01 Mar 2008)
New Revision: 32714

Modified:
   public/yanel/trunk/src/resources/xml/yanel-htdocs/doc/index.html
Log:
default example added

Modified: public/yanel/trunk/src/resources/xml/yanel-htdocs/doc/index.html
===================================================================
--- public/yanel/trunk/src/resources/xml/yanel-htdocs/doc/index.html	2008-03-01 14:54:06 UTC (rev 32713)
+++ public/yanel/trunk/src/resources/xml/yanel-htdocs/doc/index.html	2008-03-01 15:02:51 UTC (rev 32714)
@@ -48,17 +48,22 @@
     </dl>
 
     <h2>Examples</h2>
-<!--
-    <p><b>Redirect to some other url, which is also used as default/fallback redirect if custom configuration doesn't match (please see below)</b></p>
+    <p><b>Default view</b></p>
 
 <pre>
     &lt;yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0">
-      &lt;yanel:rti name="redirect" namespace="http://www.wyona.org/yanel/resource/1.0"/>
+      &lt;yanel:xml name="redirect" namespace="http://www.wyona.org/yanel/resource/1.0"/>
 
-      &lt;yanel:property name="href" value="http://www.nyt.com"/>
+      &lt;yanel:property name="mime-type" value="text/html"/>
+      &lt;yanel:property name="source-view-mime-type" value="application/xhtml+xml"/>
+
+      &lt;yanel:property name="xslt" value="/xslt/body.xsl"/>
+      &lt;yanel:property name="xslt" value="/xslt/global.xsl"/>
+
+      &lt;yanel:property name="yanel-path" value="/hello/world.xhtml"/>
+      &lt;yanel:property name="workflow-schema" value="/workflows/workflow-with-review.xml"/>
     &lt;/yanel:resource-config>
 </pre>
--->
 
     <p><b>Custom views</b></p>
 
@@ -81,5 +86,9 @@
     &lt;/yanel:resource-config>
 </pre>
 
+<p>
+Available serializers are HTML_TRANSITIONAL, XHTML_STRICT, XML, TEXT (whereas default is XHTML_STRICT). See src/impl/java/org/wyona/yanel/impl/resources/BasicXMLResource.java for details.
+</p>
+
   </body>
 </html>



More information about the Yanel-commits mailing list