11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

webMathematica User Guide 83This uses the MathML stylesheet, which here is assumed to be installed in the webMathematicaweb application in the directory XSL. The output content type is set to text/xml, and the necessarycomputation in Mathematica is carried out.When this example works, it might be interesting to use the View Source menu of yourbrowser. It should be noted how the MathML flows naturally with the XHTML. Also note how thedocument does not state the physical size of each mathematical expression. This is very usefulbecause the size will only be known accurately when the document is rendered in the browser.The actual example code delivered with webMathematica is a little more complicated since itcontains alternatives for rendering directly with MathPlayer and for generating XHTML+MathML.However, the one shown above that uses the MathML stylesheet is the most general solution.The others are included in the example for demonstration purposes.SVGSVG is a language for describing two-dimensional graphics in XML. Like MathML it is an officialrecommendation of the W3C, http://www.w3.org/Graphics/SVG/. It provides a number ofbenefits for users of webMathematica. First, since it is a vector-based format the results oftenhave a higher quality than is typically the case with image formats. This is very much the casewhen considering print output. Secondly, for many types of image, the actual file size is oftenquite small especially compared with image formats. Thirdly, it supports a number of dynamicand interactive features. Mathematica can generate SVG from graphics and this section will givesome examples of web usage involving SVG. One thing to be noted is that any exampleswill require that your browser supports SVG. Ways to do this include the use of the Amayabrowser, http://www.w3.org/Amaya/, which provides native support, or the Adobe plug-in,http://www.adobe.com/svg.A utility package is provided with webMathematica that supports adding the necessary tags tohook into the Adobe plug-in. This section will give some simple examples of the use of thispackage with webMathematica.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!