Associating DSSSL style sheets with documents
Norbert H. Mikula
nmikula at edu.uni-klu.ac.at
Thu Mar 6 08:03:36 GMT 1997
Jon Bosak wrote:
> One possible method suggested by James Clark (thank you, James) is to
> adopt the convention used by Jade in the absence of the -d option:
> replace the extension of the document entity's URL or file name with
> .dsl and fetch that. Thus, if a browser fetches
> then it should also look for
> and apply it to bar.html if found.
That is the way I have been doing it with my Cappuccino/Yade/PSC_EDB
My NXP/Yade/PSC_EDB system, at least for now, will also do it like this.
If you have only a few document instances it works fine. If you have
of them you probably will get into troubles (for the reason already
pointed out by others)
> James lists some other possibilities:
> | - a processing instruction somewhere in the prolog
I think, at least for XML, we don't want to use PIs too often.
> | - a catalog entry that says unconditionally to use some DSSSL style
> | sheet
Maybe as a fallbak if other asscociation mechanisms failed....
> | - a catalog entry that associates a DSSSL style sheet with the public
> | identifier of a DTD
Hmm, I think I would like that.
> | - make the document serve also as a style sheet by making it conform
> | to the DSSSL architecture (this will work with Jade too)
Do I understand correct that you want to include the style into the
actual document instance ? Would work of course, but I guess only
if we assume that DSSSL is the only style-spec. mechanism.
Of course I would support that ;-) No, to be serious, I think
we should separate style and instance as much as we can.
I do also think the idea with the mime header is worth a try.
Norbert H. Mikula
= SGML, DSSSL, Intra- & Internet, AI, Java
= mailto:nmikula at edu.uni-klu.ac.at
xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (rzepa at ic.ac.uk)
More information about the Xml-dev