IBM alphaWorks
E-MailSite Map
Search

alphaWorks
Internet Access Required Internet Access Required alphaWorks Press and Awards Information about alphaWorks Internet Access Required XML Tutorials and Papers
TeXML                                                                                                                        | Overview | FAQ | Requirements | Discussion |

Update: [06/23/99]
New update that contains examples for the April 21 XSL working draft. Updated for Lotus XSL 0.17.2 and XML4J 2.0.11. TeXMLatte now outputs options and parms in document order.


OVERVIEW
The Path to Print

The path to print begins with your XML document. You write an XSL transform which accepts your document type and outputs a new XML document which conforms to the TeXML document type. The java program, TeXMLatte transforms any document conforming to the TeXML document type into TeX.

You may now use your TeX processor to produce typeset output from XML.

The materials provided here give several examples of XML content transformed to TeX.

The Parts of TeXML

There are three parts to the solution:

TeXML.dtd
    an XML document type definition.
TeXML.java
    a program written in java which takes as input a DOM conforming to TeXML.dtd and outputs TeX.
TeXMLatte.java
    a program written in java which takes as input an XML document conforming to TeXML.dtd and outputs TeX. The program parses the document using the XML4J parser. It sends the resulting DOM to a method the TeXML class.

FAQ
  1. What can I do with TeXML?

    You can create typeset documents from XML markup.

    What kind of problem might TeXML help me solve?

    The power of XML is that it allows you to identify information with a domain-specific, domain-standard tags. This is what we refer to as "content markup." The elements describe the data itself, not the presentation of the data.

    Bibliographic content, for example, might have the entry, "War and Peace." That is content markup. For presentation in a browser we might write "War and Peace." For presentation in a journal we might write "{\it War and Peace}."

    Sooner or later you will want to produce printed or typeset pages from some XML content. TeXML enables you to do so using TeX.

  2. Are there other applications?

    This FAQ was written with XML markup and transformed to HTML markup. It is also available as PostScript generated through TeXML. The materials available here demonstrate the transform to PostScript from the same markup used to produce the HTML. One markup. Two presentations-- HTML and print.

    The materials also include an example of MathML markup transformed into TeXML, with PostScript generated using TeX.

  3. What do I need to use TeXML?

    You will need the following in addition to the files provided here:

  4. What is TeX?

    TeX is a language for typesetting. TeX documents are ASCII coded documents which contain typesetting commands interwoven with the content to be typeset. Implementations of TeX are widely available for most operating systems. The same TeX source may be processed on any of these systems to produce the same typeset output.


REQUIREMENTS
Click here to view the
Installation Procedures

TeXML Platform Requirements
Platform Any Java 1.1 (or later) enabled platform
Java tool JDK 1.1
Additional Java packages
  • An XSL implementation. You will find references to these at the XSL web site,
    http://www.w3c.org/Style/XSL/

  • A java runtime implementation. You will find these at
    http://www.javasoft.com/products/jdk/1.1/jre/

  • An XML parser. TeXMLatte uses the XML Parser for Java available at
    http://www.alphaworks.ibm.com/formula/XML

  • A LaTeX implementation. You will find references to these at the TeX User's Group,
    http://www.tug.org/


TeXML Installation Procedures

  1. Download and unpack the TeXML.zip file into a new directory

  2. The files will expand into the directory structure, "./com/ibm/texml."

  3. Follow additional installation instructions.


DOWNLOADS
FileSizeComments  
TeXML.zip137 KBTeXML download zip file.