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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: Re: Fw: DOCBOOK: programlisting


At (time_t)1029416793 Dave Pawson wrote:

> Isn't it possible to specify the hierarchy (selectors in css2) such that
> its possible to identify the two uses and hence style them differently?

I haven't been paying attention to the discussion, but I can at
least shed some light on the issue of CSS selectors.

There are several selectors of potential interest:

Selector syntax          Matches
---------------          -------
#foo                     Tag with id="foo"
.foo                     Tag with class="foo"
[bar~="foo"]             Tag with bar="foo"
foo                      Tag named foo

(Note that I've never tried the arbitrary attribute selector
syntax, so I don't know which browsers support it.)

In the case of the class and arbitrary attribute selectors, "foo"
will be match any word in the attribute value, so
class="various foo" will also be matched by .foo.

The above selectors can handle nested elements, so:

   #unique-id p .foo

Will match a child of a <p> tag with class="foo", but only when
the <p> is nested inside an element with id="unique-id".

There can be intermediate levels of nesting that aren't defined
in the CSS, so the above would match the img tag in the
following:

<table>
  <tbody id="unique-id">
    <td><p><a><img class="something foo"/></a></p></td>
  </tbody>
</table>

--
John R. Daily
<email><mailbox>john</mailbox><domain>geekhavoc.com</domain></email>



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


Powered by eList eXpress LLC