The Facets View presents the facets for the selected component if available. If hidden, you can open it from
→ → .The default value of a facet is presented in the Facets View with blue. The facets that can't be edited are rendered with gray. The grouping categories (eg: Enumerations and Patterns) are not editable. If these categories contain at least one child they are rendered with bold. Bold facets are facets with values set explicitly to them.
![]() | Important |
---|---|
Usually inherited facets are presented as default in the Facets view but if patterns are inherited from a base type and also specified in the current simple type only the current specified patterns will be presented. You can see the effective pattern value obtained by combining the inherited and the specified patterns as a tooltip on the Patterns category. |
Facets for components which do not belong to the current edited schema are read-only but if you double-click them you can choose to open the corresponding schema and edit them.
You can edit a facet by double-clicking or by pressing Enter.For some facets you can choose valid values from a list or you can specify another value. If a facet has an invalid value or a warning, it will be highlighted in the table with the corresponding foreground color. By default facets with errors are presented with red and the facets with warnings with yellow. You can customize the error colors from the Document checking user preferences.
The Facets View has four toolbar actions available also on the contextual menu:
Allows you to add a new enumeration or a new pattern.
Allows you to remove the value of a facet.
Allows you to move up the current enumeration/pattern in Enumerations/Patterns category.
Allows you to move down the current enumeration/pattern in Enumerations/Patterns category.
Copy the attribute value.
Allows you to open the pattern in the XML Schema Regular Expressions Builder
Facets can be fixed to prevent a derivation from modifying its value. To fix a facet
value just press the pin
button.
![]() | Note |
---|---|
If the selected component is a reference to a component defined in another schema, the facets will be read-only and the actions will be disabled. |
You can edit regular expressions either be hand or you can right click, choose Open in XML Schema Regular Expression Builder and have a full-fledged XML Schema Regular Expression builder to guide you in testing and constructing the pattern.