[Yanel-development] Resource types, xslt stylesheets and rtd files

Paloma Gomez paloma.gomez at wyona.com
Thu Nov 16 12:07:57 CET 2006


Hi all,

There is a directory in the yanel website called content where rtd files
are placed. In those files one should specify the values of the parameters
defined in the corresponding resource.xml file.

The resource.xml file corresponding to the atom resource type defines a
parameter called xslt. There is also a directory called xslt in
src/contributions/atom that contains the xslt stylesheets associated with
this resource type. In addition to this, there is also a directory called
xslt in src/realms/yanel-website/content where the xslts specific to this
website are placed.

It seems that the rtd files in Yanel Website and the .yanel-rti files in
Yulup website always reference xslt stylesheets that are specific to the
website.

For instance:
Yanel Website
src/realms/yanel-website/content/rtd/page.rtd
---------------------------------------------
<{http://www.wyona.org/yanel/resource/1.0}xml/>
mime-type: application/xhtml+xml
xslt: /xslt/global.xsl

And there is a stylesheet called global.xsl in
src/realms/yanel-website/content/xslt.

Yulup Website
website/yanel/rti-content/download/release-atom-entries.yanel-rti
---------------------------------------------------------
<{http://www.wyona.org/yanel/resource/1.0}atom/>
feed-title: Releases
author: Yulup Release Manager
xslt: /xslt/atomfeed2xhtml.xsl
self-url:
http://www.yulup.org/download/release-atom-entries/?yanel.resource.viewid=atom

And there is a stylesheet called atomfeed2xhtml.xsl in website/xslt

I would like to know how to set a xslt stylesheet that is not specific to
the website (how to reference a stylesheet contained in the xslt directory
of the resource type impl). Is there a fallback mechanism? If it is, how
does it decide the xslt to apply when there are two possible stylesheets
in the xslt directory of the resource type implementation?

Thanks,

Paloma



More information about the Yanel-development mailing list