This is the mail archive of the docbook-tools-discuss@sources.redhat.com mailing list for the docbook-tools project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Local change of stylesheet


/ Eric Bischoff <ebisch@cybercable.tm.fr> 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

  <loc role="erratumreference" href="xxx">[E999]</loc>

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 <ndw@nwalsh.com> | No man's knowledge here can go beyond
http://nwalsh.com/            | his experience.--John Locke

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]