>> I would like to apply CSS to those -varlistentry- elements that do
>> not
>> have an -xml:id- attribute.
> In a nutshell, your problem should be solved as follows:
> ---
> varlistentry {
> /* Add here properties specific to varlistentries
> NOT having xml:id */
> }
>
> varlistentry[xml|id] {
> /* Add here properties specific to varlistentries
> having xml:id */
> }
The solution: for those variable lists that are in the role of
presenting a menu and its menu items, direct varlistentry children
that do not have an xml:id attribute will be coloured red. Note the
use of a vertical bar (|) to substitute for the colon that normally
appears in the xml:id attribute name. The use of ~= allows the role
attribute to contain multiple role items, separated by spaces.
/* two-part hack to fake a -not()- psuedoclass */
variablelist[role~="menu"] > varlistentry {
color: red;
}
variablelist[role~="menu"] > varlistentry[xml|id] {
color: black;
}
CONFIDENTIALITY NOTICE: This electronic mail message and any attachment hereto
may contain confidential information of Meyer Sound Laboratories, Incorporated
and is intended for the personal and confidential use of the designated
recipient(s) only. If you are not the intended recipient (or responsible for
delivering the message to the intended recipient), you have received this
message in error and any review, distribution, or copying of this message or
any attachment hereto is prohibited. If you have received this message in
error, please promptly notify the sender and permanently delete it from your
computer.