Tag library name: context-taglib
| Index of Tags and Functions. | |
| Tags | |
| Authors: | |||
| Name | Institution | Role | |
| E. Reinaldo Barreiro | Technical University of Eindhoven (TU/e) | info@mathdox.org | Main author |
| Description: |
|
| Download and Install: | |||||||||
|
| Tags |
| 1-OMS (tag). | |
| Description |
Produces an OMS symbol but also a pointer to the CD were this symbols is defined. |
| Body Content: |
EMPTY |
| Tag Class: |
nl.tue.win.riaca.mathbook.context.taglib.OMSTag |
| Attributes: | |||
| Name | Required | Dynamic | Description |
| cd | true | false | The cd where the symbol is. |
| includeRef | false | true | If a reference is included. |
| name | true | false | The local name of the symbol. |
| Examples: | |
| Snippet 1: |
<cont:scope id="book/c1/s1/p1/">
.
.
.
<para>
The expression
<inlineequation>
<OMOBJ>
<OMA>
<cont:OMS name="plus" cd="arith1"/>
<cont:OMV name="a"/>
<cont:OMV name="b"/>
</OMA>
</OMOBJ>
</inlineequation>...
</para>
.
.
.
</cont:scope>
|
| 2-OMV (tag). | |
| Description |
It is used to access a OMV variable present in a context. The default display of the variable is produced. An appropriate reference to the variable (in the context) is produced. |
| Body Content: |
EMPTY |
| Tag Class: |
nl.tue.win.riaca.mathbook.context.taglib.OMVTag |
| Attributes: | |||
| Name | Required | Dynamic | Description |
| includeRef | false | true | Determines if a reference to the context is produced. The default value is true. |
| name | false | false | The local name of the variable to be retrieved. |
| Examples: | |
| Snippet 1: |
<cont:scope id="book/c1/s1/p1/">
.
.
.
<para>
The expression
<inlineequation>
<OMOBJ>
<OMA>
<OMS name="plus" cd="arith1"/>
<cont:OMV name="a"/>
<cont:OMV name="b"/>
</OMA>
</OMOBJ>
</inlineequation>...
</para>
.
.
.
</cont:scope>
|
| 3-out (tag). | |
| Description |
Prints out the value of the variable. The value is normally a XML encoded OpenMath fragment (but it could be any string). |
| Body Content: |
EMPTY |
| Tag Class: |
nl.tue.win.riaca.mathbook.context.taglib.OutTag |
| Attributes: | |||
| Name | Required | Dynamic | Description |
| escapeXml | false | true | If the XML must be escaped or not. True is the default value. |
| name | false | false | The local name of the variable to be retrieved. |
| Examples: | |
| Snippet 1: |
<cont:scope id="book/c1/s1/p1/">
.
.
.
<para> We have
<inlineequation>
<OMOBJ xmlns:cont="http://www.mathdox.org/MathBook/Context">
<OMA>
<OMS name="eq" cd="relation1"/>
<cont:OMV name="b"/>
<cont:out name="b"/>
</OMA>
</OMOBJ>
</inlineequation>....
</para>
.
.
.
</cont:scope>
|
| 4-scope (tag). | |
| Description |
A container for context. It specifies the place in the tree were the actual page is (and in that way used to retrieve variables). |
| Body Content: |
JSP |
| Tag Class: |
nl.tue.win.riaca.mathbook.context.taglib.ScopeTag |
| Attributes: | |||
| Name | Required | Dynamic | Description |
| id | true | false | The id. |
| Examples: | |
| Snippet 1: |
<cont:scope id="book/c1/s1/p1/">
.
.
.
<para>
The expression
<inlineequation>
<OMOBJ>
<OMA>
<OMS name="plus" cd="arith1"/>
<cont:OMV name="a"/>
<cont:OMV name="b"/>
</OMA>
</OMOBJ>
</inlineequation>...
</p>
.
.
.
</cont:scope>
|
| 5-set (tag). | |
| Description |
Sets the value of a variable. |
| Body Content: |
JSP |
| Tag Class: |
nl.tue.win.riaca.mathbook.context.taglib.SetTag |
| Attributes: | |||
| Name | Required | Dynamic | Description |
| name | true | false | The local name of the variable. |
| Examples: | |
| Snippet 1: |
<cont:set name="a">
<cont:value>
<parameters>
<param><c:out value="${param.a}"/></param>
</parameters>
</cont:value>
</cont:set>
|
| 6-value (tag). | |
| Description |
This tag is used, in combination with the set tag, to modify the value of a variable. |
| Body Content: |
JSP |
| Tag Class: |
nl.tue.win.riaca.mathbook.context.taglib.ValueTag |
| Attributes: | |||
| This tag has no attributes. | |||
| Examples: | |
| Snippet 1: |
<cont:set name="a" xmlns:cont="http://www.mathdox.org/MathBook/Context">
<cont:value xmlns:c="http://www.mathdox.org/MathBook/Core">
<parameters>
<param><c:out value="${param.a}"/></param>
</parameters>
</cont:value>
</cont:set>
|