On 1/24/06, Josias Thoeny <[EMAIL PROTECTED]> wrote:
> I'm working on a publication (using Lenya 1.4-dev) which has two kind of
> documents, which are basically xhtml documents.
> I could use the xhtml resource type for both, but I need different XSLTs
> for the presentation.
> Now I see two possibilities:
> 1. Use the xhtml resource type and additionally create a new resource
> type which uses the schema etc. of the xhtml resource type, but has a
> different XSLT for the presentation.
> 2. Use only the xhtml resource type, but add an element
> "presentationType" or something like that to the meta data.
> Lenya will then use this attribute to select the xsl for the
> presentation.
> Which option is better?
> Does Lenya already provide something like option 2, or would it make
> sense to add that functionality?

I did this in 1.2.  (The instructions are on my site.)  Overriding the
resource type was not possible because the results were cached during
the first attempt; not certain if that changed in 1.4.  Specifying a
different XSLT using a Module (Usecase in 1.2) was easy.

Devs - One of the reasons to move Modules/Usecases to the Area part of
the URL is so this is possible without using the querystring.  Instead
of:
  http://myserver/mypub/live/doc.html?lenya.module=xsl&xsl=differentxsl
use:
  http://myserver/mypub/xsl/differentxsl/doc.html
(assuming the new module is named "xsl" and requires one parameter.) 
Using my code, the "xsl" Module does its magic and passes processing
to the "live" module.

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to