Josias Thoeny wrote:

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.

you mean kind of inheritance?

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.

what about using the sitemap? For instance if only
the homepage is different than all other pages, it could
easily be caught within  the sitemap.

But yes, in other case this might not work.

Michi

Which option is better?
Does Lenya already provide something like option 2, or would it make
sense to add that functionality?

TIA for your sharing your thoughts.

Josias





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




--
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]


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

Reply via email to