attribute
The <attribute> element is used to specify the role of a certain attribute in the current document format.
<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.
<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>
- Documentation
- › Configuration
- › Elements
- › attribute
attribute element
Namespace: http://www.xopus.com/xmlns/config
Attributes
Parent Elements
History
| version | event |
|---|---|
| Xopus 4 | Tested, and confirmed to work correctly. |
| Xopus 3 | Introduction. |