The syntax for matching attribute values is expressed in the
format
[att=val]
. This syntax allows you to write patterns in the style sheet
that are close to the objects in the business model and to test
the attribute against a value.
The following example adjusts the background color of the table
cells in the column
identifier
according to the value of the attribute
perceivedSeverity
.
How to vary table cell background color
depending on attribute value
object."Alarm/identifier"[perceivedSeverity=0] {
labelBackground: '#FFFFFF';
}