This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] DocBook XSL 1.67.0 released


Paul Heinlein wrote:

It seems to me that it's good practice to have the DocBook XSL stylesheets combine the appropriate [X]HTML tag with a class attribute, rather than a generic span tag with a style attribute, whenever possible.

But what do you do when there is no appropriate HTML tag? Certainly it makes sense to add the right class attribute so we have


<span class="uri">

But should we stop there? Should the XSLT generate a CSS style element in the head of each document with rules that match all the class attributes? Or should it generate an external CSS style sheet with the right rules?

I forget how the cascading order works. If we write out:

<span class="uri" style="font-face: mono">

will a rule in the head or an external stylesheet override this or not?

--
Elliotte Rusty Harold  elharo@metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim


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