Don't misunderstand, it is not described here with international standards' mathematical XML, and implemented through the latest browser support. I just try to use XML XSLT to display with simple HTML. Just a preliminary idea, take it out and share it. Maybe before, many people have done similar attempts, there is no relationship, I just said that I think about my thoughts.
The format of mathematical formulas is a lot, such as limit and integral. Each portion can be displayed with HTML, eventually combining it with table. My idea is to use XML to describe the relationship between mathematical formula, then use XSLT to format this XML file.
Lift a simple example x square. Described with such XML data. Note that this is not an international standard format. It should be regular when you really realize.
Base>
Exponent>
Power>
That is that the value of directly replicating the VAL property is not formatted. Then use such a XSLT to transform:
XML Version = "1.0"?>
body>
html>
xsl: template>
td>
TR>
td>
TR>
TABLE>
td>
td>
TR>
td>
TR>
td>
TR>
TABLE>
td>
TR>
TABLE>
xsl: template>
xsl: template>
xsl: template>
xsl: template>
xsl: stylesheet>
Finally, use this way to connect the two together.
Xml-stylesheet type = "text / xsl" href = "math.xsl"?>
Or use this way to avoid the direct association between XML and XSLT.
// load XML
VAR XML = New ActiveXObject ("Microsoft.xmLDom")
Xml.async = FALSE
Xml.Load ("Math.xml")
// load the xsl
VAR XSL = New ActiveXObject ("Microsoft.xmldom")
XSl.async = false
XSl.Load ("Math.xsl")
// Transform
Document.write (XML.TransformNode (XSL))
script>
body>
html>
It is also possible to achieve limit, integration, etc. There are still a lot of questions now.
1. I am not familiar with many format controls for Table, causing a table that takes more than the actual required space, which is ultimately in the case like "score", too much white. 2. Some mathematical formats are difficult to express in Table, such as the symbol of the top. 3. Div may be able to send a field 4. Perhaps it can be changed from flash to the parameters. 5. Overall, inserting images is still the best solution. However, it seems that there is currently no software that is simply mathematical formula. Only a screenshot can be used. 6. This is to be implemented using XML. The integration with ordinary text will also be a problem.
Finally, I am a big student at the mathematics department. What is known is extremely limited. The above is only personal experiment, and there is no extensive network and existing software. The error is much more. If you have a master, you are very grateful.