Use XML to display mathematical formulas

zhaozj2021-02-16  46

Use XML to display mathematical formulas

TAOWEN

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.

That is that the value of directly replicating the VAL property is not formatted. Then use such a XSLT to transform:

Finally, use this way to connect the two together.

Or use this way to avoid the direct association between XML and XSLT.