attribute

The attribute element is used to specify the role of a certain attribute in the current xml format.

Example

<x:roleMapping>
  <x:element   name="a"       role="hyperlink" />
  <x:attribute name="href"    role="hyperlinkreference" />
  <x:element   name="picture" role="image" />
  <x:attribute name="source"  role="imagesource" />
</x:roleMapping>

To specify the role of an attribute in a namespace, the namespace must be declared with a prefix.

Example

<x:roleMapping xmlns:myprefix="http://www.example.com/xmlns/mynamespace">
  <x:element   name="myprefix:picture" role="image" />
  <x:attribute name="myprefix:source"  role="imagesource" />
</x:roleMapping>

Elements and Attributes

Parent Elements

Element Description
roleMapping

The roleMapping element contains all attribute and element elements for which a role is specified.

Child Elements

None

Attributes

Attribute Use Description
name Required
role Required

Specifies the role of an attribute or element. Roles are used by Xopus to determine how a node should be manipulated by the user.

Related Topics


Title Description
name (2)

Specifies the qualified name of an attribute or element.

role

Specifies the role of an attribute or element. Roles are used by Xopus to determine how a node should be manipulated by the user.

roleMapping

The roleMapping element contains all attribute and element elements for which a role is specified.