I am trying simultaneously to learn XML, CSS, and MathML so I have no idea whether I am approaching this issue in the right way or not. I've actually got a page with mathematics in MathML that looks pretty much the way I want it (in Firefox, anyway) and CSS seems to work just as expected also. But I'm stuck trying to get hyperlinks working, and part of the issue is I don't really understand how all these technologies are related.
MathML seems to require that your page be an XML document. But it also comes with two XSL pages, and
Now the idea of XSL is to transform your original XML into something else, right? So my browser is not seeing my raw XML, or I could if I chose use the XSL to change to ordinary XHMTL?
Further complicating my confusion, I wanted to try some CSS tricks, so I built a CSS page that has an @import url to the math XSL. I had no idea if that would work, since it seemed like I was asking a CSS interpreter to read XSL. But in Firefox at least it had no visible effect on the display. MathML is still being interpreted and displayed correctly, and CSS works beautifully.
Glancing into the XSL (which I do not completely understand) it looks like a lot of it is IE workarounds, so perhaps that's why I haven't seen any issues. I haven't had a chance to view in IE, so I probably broke the IE display.
What I'd like to know is if I can add "onclick" attributes to tags to execute Javascript. I suppose I could if I transformed to HTML, but then I think I'd lose my MathML. CSS has the "hover" pseudoclass which works very nicely in my MathML page to show things when the mouse is over various errors, but no "onclick" pseudoclass.
Alternately, is there some way to make the content dynamic, so for instance if I click on something I can change the CSS class of specific objects and thus invoke different rules?
Randy
MathML seems to require that your page be an XML document. But it also comes with two XSL pages, and
Now the idea of XSL is to transform your original XML into something else, right? So my browser is not seeing my raw XML, or I could if I chose use the XSL to change to ordinary XHMTL?
Further complicating my confusion, I wanted to try some CSS tricks, so I built a CSS page that has an @import url to the math XSL. I had no idea if that would work, since it seemed like I was asking a CSS interpreter to read XSL. But in Firefox at least it had no visible effect on the display. MathML is still being interpreted and displayed correctly, and CSS works beautifully.
Glancing into the XSL (which I do not completely understand) it looks like a lot of it is IE workarounds, so perhaps that's why I haven't seen any issues. I haven't had a chance to view in IE, so I probably broke the IE display.
What I'd like to know is if I can add "onclick" attributes to tags to execute Javascript. I suppose I could if I transformed to HTML, but then I think I'd lose my MathML. CSS has the "hover" pseudoclass which works very nicely in my MathML page to show things when the mouse is over various errors, but no "onclick" pseudoclass.
Alternately, is there some way to make the content dynamic, so for instance if I click on something I can change the CSS class of specific objects and thus invoke different rules?
Randy