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 just reread your post. You do not want multiple stylesheets for one document; you want each document to have different processing based on its "type". I wish each document had the "docType" in its MetaData, and set it during creation. Then Lenya could decide what processing based on the document's docType. The Lenya 1.2 parameter-doctype.xmap decides using either the URL or the document. Useful decisions based on the document use the top tag, a processing instruction, or the public id. So either use a unique top element for each docType, or add a PublicID or a PI: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xhtml PUBLIC "myXHTMLDocument1"> <?myXHTMLDocument1?> <html ... Could someone state if this changed for 1.4? solprovider --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
