Suggestions |
---|
Search:
|
Next:
Glossaries glossary.mod.xsl |
Previous:
equation Up: Formal Objects formal.mod.xsl |
informalequation — Process informalequation [2.0.9] elements
<xsl:template match="informalequation"> <xsl:variable name="tex" select="alt[@role='tex' or @role='latex']|mediaobject/textobject[@role='tex' or @role='latex']|mediaobject/textobject/phrase[@role='tex' or @role='latex']"/> ... </xsl:template>
The “equation” will be found by searching the informalequation for its “most appropriate” child elements. Firstly, this template will search for all alt [2.0.9], mediaobject/textobject [2.0.9] or mediaobject/textobject/phrase [2.0.9] children that have a role of “latex” or “tex”. If none were found, the template will search for generic mediaobject [2.0.9] or alt [2.0.9] children. If latex.alt.is.preferred is set, alts will be preferred over mediaobjects. If none of these elements was found, the template will format any graphic [2.0.9] children.