[Prev][Next][Index][Thread]

RE: draft-ietf-html-style-00.txt & class as a general selector



How about the following for a syntax for style naming. First off, we
start with the basic TEI locators:

B                ; All <B> elements
LI,B             ; All <B> elements inside <LI>
LI,B=4           ; All <B> elements that are the 4th <B> to occur
                   within an <LI>
LI=2,B=1         ; The first <B> inside the second <LI> in the
                   document

Then add attribute-based derivation:

#CLASS="foo             ; all elements of class "foo"
LI#CLASS="foo",B#CLASS="bar"    ; All <B> elements that are of class
                                  "bar" that occur within <LI> of
                                  class "foo"

Where CLASS could be replaced with an attribute.


Follow-Ups: References: