Stylus Studio XML Editor

Table of contents

Appendices

4.1 XLink Attribute Usage Patterns

XLink Attribute Usage Patterns

While the XLink attributes are considered global by virtue of their use of the namespace mechanism, their allowed combinations on any one XLink element type depend greatly on the value of the special type attribute (see [XLink Element Type Attribute (] for more information) for the element on which they appear. The conformance constraint notes in this specification detail their allowed usage patterns. Following is a summary of the element types (columns) on which the global attributes (rows) are allowed, with an indication of whether a value is required (R) or optional (O):

1bordersimple extendedlocatorarcresource title
11type11R 11R11R11R11R11R
11href 11O 1111R111111
11role 11O11O11O1111O11
11arcrole 11O111111O1111
11title 11O11O11O11O11O11
11show 11O111111O1111
11actuate 11O111111O1111
11label 111111O1111O11
11from 11111111O1111
11to 11111111O1111

(See also [Sample DTD] for a non-normative DTD that illustrates the allowed patterns of attributes.)

This specification uses the convention "xxx-type element" to refer to elements that Must, May, etc. adhere to a named set of constraints associated with an XLink element type, no matter what name the element actually has. For example, "locator-type element" would refer to all of the following elements:

<locator xlink:type="locator" ... />
<loc xlink:type="locator" ... />
<my:pointer xlink:type="locator" ... />