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, 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).

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]

Reply via email to