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]
Other format: [Raw text]

Re: Fw: programlisting


/ Paul Grosso <pgrosso@arbortext.com> was heard to say:
| At 15:00 2002 08 16 -0400, Norman Walsh wrote:
[...]
|>Do we have consensus that
|>
|>  <pre class="programlisting myrole">
|>
|>is a good idea (actually, the general principle that ' rolevalue' can
|>be tacked onto the class attribute)?
|
| What happens when the user assigns to the (source) role attribute
| a value that looks like something the stylesheets are already 
| putting into the (output) class attribute for another element?
|
| For example, what if the user put <div role="programlisting">
| or <emphasis role="programlisting">? 

The result will something like <div class="section programlisting"> and
<em class="programlisting">. If your CSS stylesheet is nonspecific
about the programlisting class value:

.programlisting {...}

instead of

pre.programlisting {...}

you'll likely get odd results. Your gun, your bullet, your foot?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | The sudden disappointment of hope
http://www.oasis-open.org/docbook/ | leaves a scar which the ultimate
Chair, DocBook Technical Committee | fulfillment of that hope never
                                   | entirely removes.--Thomas Hardy


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