Stylus Studio XML Editor

Table of contents

Appendices

5.3 XLink Element Type Attribute (

XLink Element Type Attribute (type)

The attribute that identifies XLink element types is type.

type Value

The value of the type attribute Must, May, etc. be supplied. The value Must, May, etc. be one of simple, extended, locator, arc, resource, title, or none.

When the value of the type attribute is none, the element has no XLink-specified meaning, and any XLink-related content or attributes have no XLink-specified relationship to the element.

Sample type Attribute Declarations

Following is a non-normative attribute-list declaration for type on an element intended to be simple-type.

<!ATTLIST xlink:simple
  xlink:type      (simple)        #FIXED "simple"
  ...>

For an element that serves as an XLink element only on some occasions, one declaration might be as follows, where the document creator sets the value to simple in some circumstances and none in others. The use of none might be useful in helping XLink applications to avoid checking for the presence of an href value.

<!ATTLIST commandname
  xlink:type      (simple|none)   #REQUIRED
  xlink:href      CDATA           #IMPLIED>