element

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

Example

<x:roleMapping>
  <x:element name="bold"     role="strong" />
  <x:element name="italic"   role="emphasis" />
  <x:element name="a"        role="hyperlink" />
  <x:element name="picture"  role="image" />
</x:roleMapping>

To specify a role for an element 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:bold"     role="strong" />
  <x:element name="myprefix:italic"   role="emphasis" />
  <x:element name="myprefix:a"        role="hyperlink" />
  <x:element name="myprefix:picture"  role="image" />
</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.