Borders Structure

The shape of a component is defined by the <borders> element. Only one border element can appear in a Shapes XML file. The following is the structure of a borders section:

<borders …>
<border viewBox="bounding-box">
<!-- any-SVG -->
</border>

<border type="border-type"/>

<border value="value" viewBox="bounding-box" label="legend-label">
<!-- any-SVG -->
</border>

<border value=" value" type="border-type" label="legend-label"/> <!-- border-type is a pre-defined value -->

<border value=" value" type="#symbol-ref" label="legend-label"/> <!-- symbol-rel is a user-defined <symbol> ID --> 

<border rule="XPath-expression" viewBox="bounding-box" label="legend-label">
 <!-- any-SVG -->
</border>

<border rule="XPath-expression" type="border-type" label="legend-label"/>
</borders>

The <borders> element takes the standard set of group options. For more information on the group options, see Display Option Groups.

Each <border> element contains a well-known border type or an SVG definition of a shape, usually a <path> element, although there are no restrictions. The viewBox attribute of <border> is not required when SVG is present, but if not present can give unexpected results.