XML technologies / MathML / Presentation elements / maction

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

Syntax

<maction>(child)*</maction>

Description

The maction element is used to associate interactive actions with specific parts of a MathML expression. This element is provided as a means of hooking up interactivity features implemented in a specific application to a MathML expression. Hence, the type of actions supported, if any, depend on the rendering application.

Attributes

This element accepts the two attributes shown in the following table.

Table: Attributes of maction.

Attribute

Values

Default

selection

number

1

actiontype

Depends on application.

Depends on application.

These attributes have the following meaning:

  • selection: is an integer that identifies one of the arguments of the maction element. The value 1 refers to the first argument, 2 to the second argument, and so on. The purpose of this attribute is to provide a way to refer to subexpressions of the <maction> element; for example, in cases where the intended action is to toggle between different subexpressions.

  • actiontype: specifies the action to be performed. The allowed values of this attribute are not defined by the MathML specification. Instead, each MathML application is expected to define its own values, depending on the type of actions it supports. Some examples of possible values that may be supported are: toggle, statusline, highlight, and tooltip.

   

 

 

 

 

back to top