Tag library name: cast-taglib
Index of Tags and Functions. | |
Tags | |
Functions |
Authors: | |||
Name | Institution | Role | |
E. Reinaldo Barreiro | Technical University of Eindhoven (TU/e) | info@mathdox.org | Main author |
Description: |
|
Download and Install: | |||||||||
|
Tags |
1-tomatrix (tag). | |
Description |
Tries to cast OpenMath object into a Matrix. |
Body Content: |
JSP |
Tag Class: |
nl.tue.win.riaca.taglib.cast.ToMatrixTag |
Attributes: | |||
Name | Required | Dynamic | Description |
scope | false | false | The scope were var is instantiated. The default value for scope is "page". |
value | false | true | The value to be assigned. That is other ROML object to be assigned to the variable specified by var or a string containing the XML encoding of the OpenMath object. |
var | false | false | The name of the variable you want to place in the scope. |
Examples: | |
Snippet 1: |
<cast:tomatrix var="Matrix1"> <OMOBJ> <OMA> <OMS cd="list1" name="list"/> <OMA> <OMS cd="list1" name="list"/> <OMI>123</OMI> <OMI>15</OMI> </OMA> <OMA> <OMS cd="list1" name="list"/> <OMI>-12</OMI> <OMI>151</OMI> </OMA> </OMA> </OMOBJ> </cast:tomatrix> |
2-tomultpoly (tag). | |
Description |
Tries to cast OpenMath object into a Multivariate Polynomial. |
Body Content: |
JSP |
Tag Class: |
nl.tue.win.riaca.taglib.cast.ToMultPolyTag |
Attributes: | |||
Name | Required | Dynamic | Description |
scope | false | false | The scope were var is instantiated. The default value for scope is "page". |
value | false | true | The value to be assigned. That is other ROML object to be assigned to the variable specified by var or a string containing the XML encoding of the OpenMath object. |
var | false | false | The name of the variable you want to place in the scope. |
Examples: | |
Snippet 1: |
<cast:tomultpoly var="poly1"> <OMOBJ> <OMA> <OMS cd="arith1" name="plus"/> <OMA> <OMS cd="arith1" name="times"/> <OMI>123</OMI> <OMV name="X"/> <OMV name="Y"/> </OMA> <OMA> <OMS cd="arith1" name="times"/> <OMI>5</OMI> <OMV name="X"/> <OMV name="Y"/> <OMV name="Z"/> </OMA> <OMI>-12</OMI> </OMA> </OMOBJ> </cast:tomultpoly> |
3-toset (tag). | |
Description |
Tries to cast OpenMath object into a Set. |
Body Content: |
JSP |
Tag Class: |
nl.tue.win.riaca.taglib.cast.ToSetTag |
Attributes: | |||
Name | Required | Dynamic | Description |
scope | false | false | The scope were var is instantiated. The default value for scope is "page". |
value | false | true | The value to be assigned. That is other ROML object to be assigned to the variable specified by var or a string containing the XML encoding of the OpenMath object. |
var | false | false | The name of the variable you want to place in the scope. |
Examples: | |
Snippet 1: |
<cast:tomatrix var="Set1"> <OMOBJ> <OMA> <OMS cd="list1" name="list"/> <OMA> <OMS cd="list1" name="list"/> <OMI>123</OMI> <OMI>15</OMI> </OMA> <OMA> <OMS cd="list1" name="list"/> <OMI>-12</OMI> <OMI>151</OMI> </OMA> </OMA> </OMOBJ> </cast:tomatrix> |
4-tounivpoly (tag). | |
Description |
Tries to cast OpenMath object into a Univariate Polynomial. |
Body Content: |
JSP |
Tag Class: |
nl.tue.win.riaca.taglib.cast.ToUnivPolyTag |
Attributes: | |||
Name | Required | Dynamic | Description |
scope | false | false | The scope were var is instantiated. The default value for scope is "page". |
value | false | true | The value to be assigned. That is other ROML object to be assigned to the variable specified by var or a string containing the XML encoding of the OpenMath object. |
var | false | false | The name of the variable you want to place in the scope. |
Examples: | |
Snippet 1: |
<cast:tounivpoly var="Poly1"> <OMOBJ> <OMA> <OMS cd="arith1" name="plus"/> <OMA> <OMS cd="arith1" name="times"/> <OMI>123</OMI> <OMV name="X"/> </OMA> <OMA> <OMS cd="arith1" name="times"/> <OMI>5</OMI> <OMV name="X"/> </OMA> <OMI>-12</OMI> </OMA> </OMOBJ> </cast:tounivpoly> |
Functions |
1- toMatrix (function). | |
Description: |
Tries to cast OpenMath object into a Matrix. |
Function Class: |
nl.tue.win.riaca.taglib.cast.CastFunctions |
Function Signature: |
java.lang.String toMatrix( java.lang.Object ) |
Examples: | |
Snippet 1: |
<p> <toMathML> ${parse:toMatrix(a)} </toMathML> </p> |
2- toMultPoly (function). | |
Description: |
Tries to cast OpenMath object into a Multivariate Polynomial. |
Function Class: |
nl.tue.win.riaca.taglib.cast.CastFunctions |
Function Signature: |
java.lang.String toMultPoly( java.lang.Object ) |
Examples: | |
Snippet 1: |
<p> <toMathML> ${parse:toMultPoly(a)} </toMathML> </p> |
3- toSet (function). | |
Description: |
Tries to cast OpenMath object into a Set. |
Function Class: |
nl.tue.win.riaca.taglib.cast.CastFunctions |
Function Signature: |
java.lang.String toSet( java.lang.Object ) |
Examples: | |
Snippet 1: |
<p> <toMathML> ${parse:toSet(a)} </toMathML> </p> |
4- toUnivPoly (function). | |
Description: |
Tries to cast OpenMath object into a Multivariate Polynomial. |
Function Class: |
nl.tue.win.riaca.taglib.cast.CastFunctions |
Function Signature: |
java.lang.String toUnivPoly( java.lang.Object ) |
Examples: | |
Snippet 1: |
<p> <toMathML> ${parse:toUnivPoly(a)} </toMathML> </p> |