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.

Roles are used as hints. Xopus will always follow the rules specified in the schema.

Possible Values

Name Description
table

This element will be inserted by the table editor. The html equivalent is <TABLE>.

tablerowcontainer

The table editor will insert table rows in this element. The html equivalents are <TABLE>, <THEAD>, <TBODY> and <TFOOT>.

tableheader

Currently not used.

tablebody

Currently not used.

tablefooter

Currently not used.

tablerow

The table editor will insert this element in the tablerowcontainer. The html equivalent is <TR>.

tablecellcontainer

The table editor will insert table cells in this element. The html equivalent is <TR>.

tableheadercell

The table editor can insert this element in the tablecellcontainer. The html equivalent is <TH>.

tablecell

The table editor can insert this element in the tablecellcontainer. The html equivalent is <TD>.

cellrowspan

The table editor uses this attribute to specify the the number of rows a cell spans. The html equivalent is ROWSPAN="".

cellcolspan

The table editor uses this attribute to specify the the number of columns a cell spans. The html equivalent is COLSPAN="".

tableborder

Currently not used.

tablecellspacing

Currently not used.

tablecellpadding

Currently not used.

tablecaption

Currently not used.

strong

The toolbar will add a B button to insert and remove this element. The html equivalent is <STRONG>.

emphasis

The toolbar will add an I button to insert and remove this element. The html equivalent is <EM>.

underline

The toolbar will add a U button to insert and remove this element. The html equivalent is <U>.

strikethrough

Currently not used.

hyperlink

The toolbar will add an insert hyperlink button to insert and remove this element. The html equivalent is <A>.

hyperlinkhref

Currently not used.

image

The toolbar will add an insert image button to insert and remove this element. The html equivalent is <IMG>.

imagesource

Currently not used.

flash

The toolbar will add an insert flash button to insert and remove this element.

superscript

The toolbar will add a superscript button to insert and remove this element. The html equivalent is <SUP>.

subscript

The toolbar will add a subscript button to insert and remove this element. The html equivalent is <SUB>.

linebreak

This element will be inserted when the user presses Shift+Enter. The html equivalent is <BR>.

paragraph

This element will often be inserted when the user presses Enter. The html equivalent is <P>.

section

Currently not used.

list

Currently not used.

orderedlist

The toolbar will add an ordered list button to insert and remove this element. The html equivalent is <OL>.

unorderedlist

The toolbar will add an ordered list button to insert and remove this element. The html equivalent is <UL>.

listitem

The html equivalent is <LI>.

width

Currently not used.

height

Currently not used.

align

Currently not used.

valign

Currently not used.

hidden-from-ui

This role, which can be configured for both elements and attributes, hides the configured elements and attributes from the user in the interface. The nodes will no longer show up in lists of options for adding elements.

auto-insert

Like the paragraph role, this role can be used to configure an item as the default choice for an element that ought to contain at least on of a choice.

color

If this attribute is defined as a enumeration in the schema it receives an icon in the UI of Xopus.

Elements and Attributes

Owner Elements

Element Description
attribute

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

element

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

Related Topics


Title Description
Upgrade from Xopus 2 to 3

Xopus 3 is not backward compatible with Xopus 2. So in order to upgrade to Xopus 3, the Xopus integration needs to be upgraded as well. This document explains the steps you need to take to upgrade your Xopus 2 integration.

attribute

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

element

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

roleMapping

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

The Xopus Interface

Use the items on the right to see where to find them in Xopus, and how they work.