[Yanel-commits] rev 32712 -
public/yanel/trunk/src/resources/xml/yanel-htdocs/doc
michi at wyona.com
michi at wyona.com
Sat Mar 1 15:49:51 CET 2008
Author: michi
Date: 2008-03-01 15:49:50 +0100 (Sat, 01 Mar 2008)
New Revision: 32712
Modified:
public/yanel/trunk/src/resources/xml/yanel-htdocs/doc/index.html
Log:
examples 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 12:33:41 UTC (rev 32711)
+++ public/yanel/trunk/src/resources/xml/yanel-htdocs/doc/index.html 2008-03-01 14:49:50 UTC (rev 32712)
@@ -1,20 +1,85 @@
-<html>
+<?xml version="1.0"?>
+
+<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <title>tbd</title>
+ <title>XML resource</title>
+ <style>
+h2 {
+ font-size: 130%;
+ color: #ffffff;
+ background-color: #525D76;
+}
+pre {
+ background-color: efefef;
+}
+td {
+ background-color: eeeeee;
+ color: 000000;
+}
+
+/* first row */
+table tr:first-child td {
+ background-color: cccccc;
+ color: 000000;
+}
+
+/* or th as first row */
+table th {
+ background-color: cccccc;
+ color: 000000;
+}
+ </style>
</head>
<body>
- <h1>from-scratch</h1>
+ <h1>XML resource</h1>
+
+ <h2>Overview</h2>
<dl>
<dt>Name:</dt>
- <dd>tbd</dd>
+ <dd>xml</dd>
<dt>Namespace:</dt>
- <dd>tbd</dd>
- <dt>UniversalName</dt>
- <dd>tbd</dd>
+ <dd>http://www.wyona.org/yanel/resource/1.0</dd>
+ <dt>Universal Name:</dt>
+ <dd><{http://www.wyona.org/yanel/resource/1.0}xml/></dd>
<dt>Description:</dt>
- <dd>tbd</dd>
+ <dd>XML whereas an XSLT or multiple XSLTs can be specified and applied</dd>
<dt>Java Class:</dt>
- <dd>tbd</dd>
+ <dd>org.wyona.yanel.impl.resources.XMLResource</dd>
</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>
+
+<pre>
+ <yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0">
+ <yanel:rti name="redirect" namespace="http://www.wyona.org/yanel/resource/1.0"/>
+
+ <yanel:property name="href" value="http://www.nyt.com"/>
+ </yanel:resource-config>
+</pre>
+-->
+
+ <p><b>Custom views</b></p>
+
+<pre>
+ <yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0">
+ <yanel:rti name="xml" namespace="http://www.wyona.org/yanel/resource/1.0"/>
+
+ <yanel:property name="href" value="http://fallback.default.com"/>
+
+ <yanel:custom-config>
+ <views xmlns="http://www.wyona.org/yanel/rti/1.0">
+ <view id="default">
+ <mime-type>application/xhtml+xml</mime-type>
+ <xslt>/xslt/body.xsl</xslt>
+ <xslt>/xslt/global.xsl</xslt>
+ <serializer key="XHTML_STRICT"/>
+ </view>
+ </views>
+ </yanel:custom-config>
+ </yanel:resource-config>
+</pre>
+
</body>
</html>
More information about the Yanel-commits
mailing list