Basic Structure

Components can be overlaid with patterns. A <patterns> section defines a set of overlays that contain a well-known pattern, a reference to a pattern defined in the <svg:defs> section or an in-line SVG pattern definition. In general, you must not specify a default pattern. The <patterns> and <overlay> elements follow the mentioned in Display Option Groups and Display Options. The following is an example for the pattern group:

<?xml version="1.0"?>
<shapes xmlns:svg="http://www.w3.org/2000/svg">
 <patterns>
            <overlay rule="@ref='true'" type="striped-diag-up" label="Reference Compo&#xad;nent"/>
            <overlay rule="@state='deprecated'" label="Deprecated">
                    <svg:pattern patternUnits="userSpaceOnUse" viewBox="0 0 10 10" x="0" y="0" width="100%" height="100%">
                 <svg:path d="M 1 1 L 9 9 M 1 9 L 9 1" stroke="#555" stroke-width="1.15" stroke-linecap="round"/>
                    </svg:pattern>
            </overlay>
             <overlay rule="VERSION(@introduced) = VERSION()" type="radial-grad" label="New in {@ver}"/>
 </patterns>
</shapes>