11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

webMathematica User Guide 71This outputs the new XML expression.In[5]:=ExportString@newSym, "XML"DOut[5]= a new kind of sciencestephen wolframthe lord of the ringsj.r.r. tolkienThis type of transformation can of course be done in other ways. For example, the use of XSLTstylesheet technology provides one way. However, there is an overhead to setting up an XSLTstylesheet to make the transformation. The use of Mathematica, with its uniform programmingprinciples, is often a quick and simple way to get the task carried out.There are many more features of the Mathematica XML tools, for example, working withattributes, entities, namespaces, validation, and CDATA. More information is available from theMathematica documentation.webMathematica XML ApplicationsMany webMathematica applications involve generating HTML to be read by browsers. However,the output from a webMathematica site may not go to a browser; it may involve some data tobe read by an application that will then do further processing. This section will study an examplethat shows how this can be done.The source for this example is in webMathematica/Examples/XML/Phone.jsp andwebMathematica/Examples/XML/Processed.jsp. It also uses an XML file webMathematica/Examples/XML/phone.xml. If you installed webMathematica as described above, you should beable to connect to this JSP via http://localhost:8080/webMathematica/Examples/XML/Phone.jsp. (You may have some other URL for accessing your server.)

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

Saved successfully!

Ooh no, something went wrong!