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 |
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. |
- Support /
- Documentation /
- Developer Guide /
- Reference /
- Xopus Local Configuration /
- Elements /
- element
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 |