OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] DocBook XSL 1.67.0 released


On Thu, 11 Nov 2004, Elliotte Harold wrote:

> Longer term, I'd also think about whether a few of these like 
> systemitem, filename, and email need to be indicated with <span 
> style="font-style: monospace"> instead of using code or samp at all.

I'd prefer to avoid hard-coding style attributes into the resulting 
[X]HTML whenever possible.

It's currently pretty easy to set up CSS stylesheets using the class 
name (e.g., code.systemitem {blah;}).

Once the output is <span style="blah">, then anyone who wants a 
non-default style is forced into writing a custom XSL template to 
handle systemitem, filename, or whatever. For sites that rely on 
alternate CSS stylesheets, the workload would be even larger.

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.

--Paul Heinlein <heinlein@madboa.com>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]