Josias Thoeny schrieb:
Hi,
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?
IMO it's clear that option 2. is better (separate content from
presentation concerns), whereas I guess Lenya currently provides for
option 1 ...
BTW related to the content API discussion on the dev list, IMO
"presentationType" is not meta-data but should be a property of the
corresponding site node (like "isVisibleInNav")
--
Wolfgang
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]