• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

12. Generating SVG > Using Java to Convert XML to SVG

Using Java to Convert XML to SVG

While preparing to write Appendix D I had to decide how to produce the matrix equations. At that time, I didn’t have a definitive answer from the production staff at O’Reilly on the format in which to submit the data. I decided on an ad-hoc subset of MathML,[18] an XML application for describing the presentation and content of mathematical information. This choice gave me the maximum flexibility; I would not be tied down to a proprietary equation editor, conversion to the TeX typesetting language (a common format among publishers) could be done with a trivial XSLT file, and using MathML would give me an example for this chapter.

This example is atypical in that the majority of its output will be <text> elements. It is further atypical in that it is not a general tool, nor is it intended to be. It is, however, typical in that it shows how to parse an input XML document, construct a new XML document in memory and output through a serializer.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint