hi *!

i'm trying to find a way to associate stylesheets to documents (since they can contain arbitrary xml, one per-doctype stylesheet won't do).


there is an xmldb doctype. a typical xmldb document contains one or more xqueries that will return contents from a database when "rendered".
each of those documents needs one or more custom-tailored stylesheets.

these stylesheets are also plain old lenya documents of the doctype "xslt", which allows me to edit them using oneform or to upload a new one easily, and if i screw them up, i have rollback.

the problem is now: how do i associate these stylesheets with my xmldb document? i have thought about several options:

* embedding a list of stylesheets in the xmldb document with a special tag. nice, but i can't think of a way to get at those values to use them in a <map:transform src="{here i need the values}"/> call. is there some magic input module to do that? XMLFileModule does not do, since it needs to know the filename at build time, whereas i need to apply it dynamically to whatever document is requested.

* using custom metadata. that way, i could use the metadata input module for the transform call. but i don't know the syntax, and i would like to have the opportunity to associate more that one stylesheet to a document, which gets kludgy since metadata fields always have a 1:1 relationship of fieldname and value...

* looking for xslt document nodes below the xmldb document in the sitetree, and applying them in tree order. looks the most promising so far, but how do i get the sitetree information in a sitemap?


if you have an idea, i'd like to hear about it.


thanks,

jörn




--
"Open source takes the bullshit out of software."
        - Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736

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

Reply via email to