From mboxrd@z Thu Jan 1 00:00:00 1970 From: Norman Walsh To: Eric Bischoff Cc: Peter Toft , docbook-tools-discuss@sourceware.cygnus.com Subject: Re: Local change of stylesheet Date: Wed, 27 Dec 2000 06:36:00 -0000 Message-id: <8766nf2vnj.fsf@nwalsh.com> References: <39D35FF9.DFDE6593@cybercable.tm.fr> <87snqk44rs.fsf@nwalsh.com> <39D49043.BA3A395B@cybercable.tm.fr> X-SW-Source: 2000/msg00357.html / Eric Bischoff was heard to say: | > Or set the stylesheet using a custom driver. But maybe the dbhtml PI | > should be extended...I can imagine wanting per-document stylesheets. | > Kindof. Actually, the dbhtml PI would be the wrong answer, support for Associating Style Sheets with XML Documents[1] is the "right" answer. | Nice idea, but it would somehow break the separation between the | document and its style sheets, no? You would have to find *in the | document* information about the style sheets you want. There's a big | conceptual problem behind that. It's a problem, but it has practical applications. Suppose that you implement some one-off markup in a single document. For example, the second edition of the XML REC has "erratum numbers" identified by [E999] In the "plain" presentation of this document, the E-numbers are to be suppressed. The stylesheet that accomplishes this is "xml-rec-2e.xsl". At the moment, I always put that filename on the command line, but is it completely wrong to point to that stylesheet from the document? Hard to say. What we really need is better facilities for handling XML documents and stylesheets at the system level. What I really want is simply a (possibly local, possibly global) association between that document and that stylesheet. [1] http://www.w3.org/TR/xml-stylesheet/ Be seeing you, norm -- Norman Walsh | No man's knowledge here can go beyond http://nwalsh.com/ | his experience.--John Locke