Ulrich_Laegeler at arburg.com wrote:
> Hello,
>
> i select an element with defined attribute value.
>
> MyElem[MyAttr="MyValue"] {
> display: inline;
> background-color: gray;
> }
>
> That works.
>
> But now i want to select all elements with a attribute
> value except 'MyValue'.
> Like:
>
> MyElem[MyAttr!="MyValue"] {
> display: inline;
> background-color: white;
> }
>
> How could i do this?
>
--> This is a CSS question more than a question related to XMLmind XML
Editor.
MyElem[MyAttr] {
display: inline;
background-color: white;
}
MyElem[MyAttr="MyValue"] {
background-color: transparent; /*OR inherit*/
}
First rule applies to any MyElem[MyAttr]. Second rule, which is more
specific than the first one, treats MyElem[MyAttr="MyValue"] as an
exception.
--> Now the key problem is how to specify:
css-property-value: the-normal-value;
In general, you can use something like:
color: inherit;
See http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/restrict.html
Also note that:
content: "";
cancels any generated content specified in the more general rule.
---
PS: This level of support is normally reserved to the customers of
Professional Edition. No offense intended, but the moderator of the
mailing list should have rejected this question (of course, with nice
words explaining why your question was rejected).