Andreas Hartmann wrote:
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.
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?
I'd start with option (2). Concepts like resource type inheritance and
overriding resource types in publications could be discussed,
do you see any negative side-effects with this?
but I'd
rather see the resource type as a black box and apply an additional
transformation inside the publication (e.g., as you already mentioned,
using meta data).
well, it's seems to me that this will be a never-ending story, but
it's more of guts feeling and maybe one can limit it.
Michi
If it helps, we could add additional "plain" formats to the resource
types to support custom rendering stages.
<map:generate src="{resource-type:format-plain}"/>
<map:transform src="xslt/my-custom-style.xsl"/>
...
-- Andreas
---------------------------------------------------------------------
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]