Option Value

Syntax: <yyyy value="value" label="legend-label"/>

Example: <border value="CR" type="box-clipRB" label="Common Replace&#xad;able"/>

Use: Defines a presentation option to use when an aspect of a component matches a specific value.

An option is used for a component if the value attribute matches the value at the XPath specified in the parent option’s use attribute. The purpose of value is to provide a simple syntax for matching options without requiring to resort to the more complicated rule syntax.

For example, suppose a group is:

<xxx use="s12/@osd">
<yyy value="OS">…</yyy>
<yyy value="CS">…</yy>

While determining the presentation, it looks at the value of the osd attribute of the contained s12 element:

<component …>…
<s12 osd="OS"/> …  <!-- Looks at the "OS" value  -->
</component>

In this case, the value of osd is OS, which means the presentation details (not shown in the above example) in the first option are used to draw the component.