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

Josias Thöny josias.thoeny at wyona.com
Thu Nov 16 12:36:16 CET 2006


Hi Paloma,

On Thu, 2006-11-16 at 12:07 +0100, Paloma Gomez wrote:
[...]
> 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?

If you have a look at the method getXSLTStreamSource() in
AtomFeedResource.java, it seems that it always takes the xslt from the
repository, unless the xslt property is undefined. In that case, it
takes atomfeed2xhtml.xsl from the resource directory.
It's something like a fallback, but it doesn't allow you to choose which
xslt you want because the atomfeed2html.xsl is hardcoded.
If you want to define the xslt in the rtd file, you probably have to
extend this class.

hth,
josias

> 
> Thanks,
> 
> Paloma
> 
> _______________________________________________
> Yanel-development mailing list
> Yanel-development at wyona.com
> http://wyona.com/cgi-bin/mailman/listinfo/yanel-development
> 




More information about the Yanel-development mailing list