[Yanel-dev] Re: [Yanel-commits] rev 43028 - public/yanel/trunk/src/realms/from-scratch-realm-template/res-configs

Guillaume Déflache guillaume.deflache at wyona.com
Wed May 27 18:44:41 CEST 2009


Hi!

michi at wyona.com schrieb:
> Author: michi
> Date: 2009-05-27 16:36:09 +0200 (Wed, 27 May 2009)
> New Revision: 43028
> 
> Added:
>    public/yanel/trunk/src/realms/from-scratch-realm-template/res-configs/my-global.xsl.yanel-rc
> Modified:
>    public/yanel/trunk/src/realms/from-scratch-realm-template/res-configs/generic-xhtml-page_yanel-rc.xml
> Log:
> global switch started
> 
> Modified: public/yanel/trunk/src/realms/from-scratch-realm-template/res-configs/generic-xhtml-page_yanel-rc.xml
> ===================================================================
> --- public/yanel/trunk/src/realms/from-scratch-realm-template/res-configs/generic-xhtml-page_yanel-rc.xml	2009-05-27 14:15:20 UTC (rev 43027)
> +++ public/yanel/trunk/src/realms/from-scratch-realm-template/res-configs/generic-xhtml-page_yanel-rc.xml	2009-05-27 14:36:09 UTC (rev 43028)
> @@ -4,5 +4,8 @@
>    <yanel:rti name="xml" namespace="http://www.wyona.org/yanel/resource/1.0"/>
>  
>    <yanel:property name="xslt" value="/app/xslt/global.xsl"/>
> +<!-- TODO: Implement resolver for xslt property of xml resource
> +  <yanel:property name="xslt" value="yanelresource:/my-global.xsl"/>
> +-->
>    <yanel:property name="mime-type" value="application/xhtml+xml"/>
>  </yanel:resource-config>
> 
> Added: 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	                        (rev 0)
> +++ public/yanel/trunk/src/realms/from-scratch-realm-template/res-configs/my-global.xsl.yanel-rc	2009-05-27 14:36:09 UTC (rev 43028)
> @@ -0,0 +1,8 @@
> +<?xml version="1.0"?>
> +
> +<yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0">
> +  <yanel:rti name="file" namespace="http://www.wyona.org/yanel/resource/1.0"/>
> +
> +  <yanel:property name="src" value="/app/xslt/global.xsl"/>
> +  <yanel:property name="mime-type" value="application/xml"/>
> +</yanel:resource-config>
> 

FYI WRT TODO: See 
http://bugzilla.wyona.com/cgi-bin/bugzilla/attachment.cgi?id=1069&action=view 
(taken from bug 6869) for how to implement it.
Unfortunately it seems difficult to add resolver support to 
resource-types that already support VersionableVn interfaces (try it, 
getNode() and or getView(String viewId, String revision) seems hard to 
wrap in the general case!) like "file", "xml", ... Maybe we should 
implement a decorating/delegating view which is only ViewableVn instead?

WDYT?


Cheers,
    Guillaume


More information about the Yanel-development mailing list