[Yanel-commits] rev 37938 - in
public/yanel/trunk/src/realms/yanel-website/content/e41b0c5c-4ebc-4ced-8b6c-5946a67fee91.yarep/revisions:
. 1218631502993
simon at wyona.com
simon at wyona.com
Wed Aug 13 14:43:44 CEST 2008
Author: simon
Date: 2008-08-13 14:43:43 +0200 (Wed, 13 Aug 2008)
New Revision: 37938
Added:
public/yanel/trunk/src/realms/yanel-website/content/e41b0c5c-4ebc-4ced-8b6c-5946a67fee91.yarep/revisions/1218631502993/
public/yanel/trunk/src/realms/yanel-website/content/e41b0c5c-4ebc-4ced-8b6c-5946a67fee91.yarep/revisions/1218631502993/content
public/yanel/trunk/src/realms/yanel-website/content/e41b0c5c-4ebc-4ced-8b6c-5946a67fee91.yarep/revisions/1218631502993/meta
Log:
new revision of content of BasicXMLResource documentation added
Added: public/yanel/trunk/src/realms/yanel-website/content/e41b0c5c-4ebc-4ced-8b6c-5946a67fee91.yarep/revisions/1218631502993/content
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/e41b0c5c-4ebc-4ced-8b6c-5946a67fee91.yarep/revisions/1218631502993/content (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/content/e41b0c5c-4ebc-4ced-8b6c-5946a67fee91.yarep/revisions/1218631502993/content 2008-08-13 12:43:43 UTC (rev 37938)
@@ -0,0 +1,34 @@
+<?xml version="1.0"?><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>BasicXMLResource</title> <link rel="neutron-introspection" type="application/neutron+xml" href="?yanel.resource.usecase=introspection"/></head><body> <h1>BasicXMLResource</h1>BasicXMLResource is a base class for resources that generate XML. you can extend this class if you want to develop a resource-type which will proced xml.<br/>It already has implemented a bunch of nice thing which you could like. e.g. XSLT, <a href="i18n.html" shape="rect">i18n</a>, XInclude, ConfigurableViewDescriptor. <br/>At the moment folowing resource-types extending BasicXMLResource: xml, user-mgmt (via ExecutableUsecaseResource).<br/><br/><h2>Resource Configuration Properties:</h2><tt><yanel:property name="i18n-catalogue" value="VALUE"/></tt> see: <a href="i18n.html">i18n</a><br/><tt><yanel:property name="xslt" value="VALUE"/></tt><br/><br/><h3>
+</h3><h4>
+</h4><h5>
+</h5>
+<h2> Custom Resource Configuration (ConfigurableViewDescriptor)</h2><br/><table>
+ <tbody><tr>
+ <th>Element Name<br/></th>
+ <th>Child-Element</th><th valign="top">Attribut</th><th valign="top">Explanation</th>
+ </tr>
+ <tr><td valign="top">views</td><td valign="top">view</td><td valign="top"/><td valign="top">Container for all views</td></tr><tr><td valign="top">view</td><td valign="top">mime-type, xslt, serializer </td><td valign="top">id<b></b></td><td valign="top">A single view. Can be 'default' or 'source' for built in views. Or any other id for a custom view. A view is accessed through a request parameter <b>yanel.resource.viewid</b></td></tr><tr><td valign="top">mime-type</td><td valign="top">-</td><td valign="top"/><td valign="top">E.g. text/html, application/xhtml+xml ...</td></tr><tr><td valign="top">xslt</td><td valign="top">-</td><td valign="top"/><td valign="top">Path to xslt. absolute data-repo path.</td></tr><tr><td valign="top">serializer</td><td valign="top">-</td><td valign="top"/><td valign="top">If no serializer is specified for a view, the serializer will be chosen depending
+ on the mime-type, whereas the default serializer is XHTML_STRICT<br/>Possible Serializers:<br/>HTML_TRANSITIONAL,TEXT,XHTML_STRICT, XML</td></tr><tr>
+ <td><br/></td>
+ <td><br/></td><td valign="top"/><td valign="top"/>
+ </tr>
+</tbody></table> <br/><h3>Example:</h3><tt><yanel:custom-config><br/> <views><br/> <!-- No parameter needed for getting this view --><br/> <view id="default"><br/> <mime-type>text/html</mime-type><br/> <xslt>/xslt/global.xsl</xslt><br/> <serializer key="HTML_TRANSITIONAL"><br/> </serializer><br/> </view><br/> <br/> <view id="beautiful"><br/> <mime-type>application/xhtml+xml</mime-type><br/> <xslt>/xslt/global.xsl</xslt><br/> <serializer key="XHTML_STRICT"><br/> </serializer><br/> </view><br/> <br/> <view id="atom"><br/> <mime-type>application/atom+xml</mime-type><br/> <serializer key="XML"><br/> </serializer><br/> </view><br/> <br/> <view id="json"><br/> <mime-type>applica!
tion/json</mime-type><br/> <serializer key="TEXT"><br/> </serializer><br/> </view><br/> <br/> <!-- Skips any provided XSLT--><br/> <view id="source"><br/> <mime-type>application/xhtml+xml</mime-type><br/> <serializer key="XML"><br/> </serializer><br/> </view><br/></views><br/></yanel:custom-config></tt><br/><br/> <h2>XSLT</h2><h3>Built-in XSLT-Parameter:</h3><table>
+ <tbody><tr><th valign="top">Property-name</th><th valign="top">Explanation:</th></tr><tr>
+ <td>yanel.path.name</td>
+ <td><br/></td>
+ </tr>
+ <tr>
+ <td>yanel.path</td>
+ <td>Requested path<br/></td>
+ </tr><tr><td valign="top">yanel.back2context</td><td valign="top">Path prefix for yanel root.<br/></td></tr><tr><td valign="top">yanel.globalHtdocsPath</td><td valign="top">Path prefix for accessing content from globalHtocsPath.</td></tr><tr><td valign="top">yanel.resourcesHtdocsPath</td><td valign="top">Path prefix for accessing content of this resources HtdocsPath.</td></tr><tr><td valign="top">yanel.back2realm</td><td valign="top">Path prefix for realm root.<br/></td></tr><tr><td valign="top">yarep.back2realm<br/></td><td valign="top">(Deprecated) Same as: yanel.back2realm. For backwards compatibility only.<br/></td></tr><tr><td valign="top">os</td><td valign="top">User-agent operating-system</td></tr><tr><td valign="top">client</td><td valign="top">User-agent (At the moment it just shows msie or firefox)</td></tr><tr><td valign="top">language</td><td valign="top">Requested Language</td></tr><tr><td valign="top">content-language</td><td valign="top">language of content!
</td></tr><tr><td valign="top">username</td><td valign="top">Username of the loged in user.</td></tr><tr><td valign="top">yanel.reservedPrefix</td><td valign="top">Reserved Prefix of yanel (ATM hardcoeded (yanel))</td></tr><tr><td valign="top">yanel.toolbar-status</td><td valign="top">on or off. status of tollbar.</td></tr>
+</tbody></table> <h3>Built-in Schemes:</h3><table>
+ <tbody><tr>
+ <th>Protocol</th>
+ <th valign="top">Explanation</th><th>Example</th><th valign="top">Source</th>
+ </tr>
+ <tr><td valign="top">http</td><td valign="top">Accessing content proceded by yanel as configured in the requested path resource config. <br/></td><td valign="top">http://.../yanel/myrealm/index.html</td><td valign="top">rc-repo/index.html.yanel-rc <br/></td></tr><tr><td valign="top">yanelresource</td><td valign="top">Accessing content proceded by yanel as configured in the requested path resource config. Allows to bypass HTTP </td><td valign="top">yanelresource:/index.html</td><td valign="top">rc-repo/ index.html.yanel.rc</td></tr><tr><td valign="top">yanelrepo</td><td valign="top">Accessing content in data-repo of curent realm.<br/></td><td valign="top">yanelrepo:/index.html</td><td valign="top"> data-repo/index.html</td></tr><tr><td valign="top">yanelrepo:REALM_ID</td><td valign="top">Accessing content in data-repo of realm test-realm.</td><td valign="top">yanelrepo:test-realm:/index.html</td><td valign="top"> data-repo/index.html</td></tr><tr>
+ <td>yanelrepo:REALM_ID:REPO_ID<br/></td>
+ <td valign="top">Accessing content in repo with id test-repo of realm test-realm.</td><td>yanelrepo:test-realm:test-repo:/index.html</td><td valign="top">test-repo/index.html</td></tr><tr><td valign="top">
+ rthtdocs</td><td valign="top">Accessing resource-type specific content in the resource-types htdocs direcotry<br/></td><td valign="top">
+ rthtdocs:/foo/bar.xml</td><td valign="top">resource-type/htdocs/foo/bar.xml</td></tr><tr><td valign="top">rtyanelhtdocs</td><td valign="top">Accessing yanel specific content in the resource-types yanel-htdocs direcotry</td><td valign="top">rtyanelhtdocs:/foo/bar.xml</td><td valign="top">resource-type/yanel-htdocs/foo/bar.xml</td></tr></tbody></table> </body>
+</html>
Added: public/yanel/trunk/src/realms/yanel-website/content/e41b0c5c-4ebc-4ced-8b6c-5946a67fee91.yarep/revisions/1218631502993/meta
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/e41b0c5c-4ebc-4ced-8b6c-5946a67fee91.yarep/revisions/1218631502993/meta (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/content/e41b0c5c-4ebc-4ced-8b6c-5946a67fee91.yarep/revisions/1218631502993/meta 2008-08-13 12:43:43 UTC (rev 37938)
@@ -0,0 +1,10 @@
+yarep_revisionComment<string>:updated
+yarep_type<string>:resource
+yarep_revisionCreator<string>:lenya
+yarep_isCheckedOut<boolean>:false
+yarep_size<long>:7277
+yarep_checkoutDate<date>:2008-08-13T13:34:17+0100
+yarep_checkoutUserID<string>:lenya
+yarep_lastModifed<long>:1218631502000
+yarep_checkinDate<date>:2008-08-12T23:34:06+0100
+yarep_revisionCreationDate<date>:2008-08-13T13:45:03+0100
More information about the Yanel-commits
mailing list