[Yanel-commits] rev 43205 -
public/yanel/trunk/src/realms/from-scratch-realm-template/res-configs
michi at wyona.com
michi at wyona.com
Thu Jun 11 11:42:22 CEST 2009
Author: michi
Date: 2009-06-11 11:42:21 +0200 (Thu, 11 Jun 2009)
New Revision: 43205
Modified:
public/yanel/trunk/src/realms/from-scratch-realm-template/res-configs/my-global.xsl.yanel-rc
Log:
thanks to Prabodh Upreti the layout can now be dynamically switched
Modified: public/yanel/trunk/src/realms/from-scratch-realm-template/res-configs/my-global.xsl.yanel-rc
===================================================================
--- public/yanel/trunk/src/realms/from-scratch-realm-template/res-configs/my-global.xsl.yanel-rc 2009-06-11 09:41:55 UTC (rev 43204)
+++ public/yanel/trunk/src/realms/from-scratch-realm-template/res-configs/my-global.xsl.yanel-rc 2009-06-11 09:42:21 UTC (rev 43205)
@@ -1,12 +1,10 @@
<?xml version="1.0"?>
<yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0">
- <!-- TODO: Create/use a resource which selects the XSLT based on for example a session parameter, such that one can switch dynamically between app1 and app2 -->
- <yanel:rti name="file" namespace="http://www.wyona.org/yanel/resource/1.0"/>
+ <yanel:rti name="layoutselector" namespace="http://www.wyona.org/yanel/resource/1.0"/>
- <yanel:property name="src" value="/app1/xslt/global.xsl"/>
-<!--
- <yanel:property name="src" value="/app2/xslt/global.xsl"/>
--->
+ <yanel:property name="default-layout-version" value="1"/>
+ <yanel:property name="layout_name" value="welcome"/>
+ <yanel:property name="src" value="/app{$xslt-version}/xslt/global.xsl"/>
<yanel:property name="mime-type" value="application/xml"/>
</yanel:resource-config>
More information about the Yanel-commits
mailing list