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


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

Re: Presentational markup in Docbook


> From: Elliotte Rusty Harold <elharo@metalab.unc.edu>
> 
> In strict XHTML 1.1 I can use style attributes containing
> CSS rules to note that a particular element should be bold,
> italic, red, or some such. If necessary, I can add a span
> element to give me something to hang the CSS off of.
> 
> 
> Is there any equivalent in Docbook? That is, is there any
> way to say that I want these three words to be red? or that
> element to be bold? Or that this note should be in a sans
> serif font? Mostly I'm happy with Docbook's semantic
> markup, but occasionally it seems that something is
> missing.
> 
> XHTML lets me apply unique styles without messing up the
> semantic nature of my document. Does Docbook?

DocBook has no specific markup for styles, but you can fake
it with <phrase> and its role attribute.  For example:
<phrase role="red">my red text</phrase>.  Of course
you have to modify the stylesheet for <phrase> to respond
properly to the "red" role attribute.

bobs
Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com

------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-request@lists.oasis-open.org


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