Tools
TeXML: an XML vocabulary for TeX
11:10, 13 Apr 2004 UTC | Oleg Paraschenko

TeXML is an XML vocabulary for TeX. The processor transforms TeXML markup into the TeX markup, escaping special and out-of-encoding characters. Intended audience is developers who convert documents from XML to TeX.

Example of TeXML to TeX translation
TeXML TeX
<cmd name="documentclass">
  <opt>12pt</opt>
  <parm>letter</parm>
</cmd>
\documentclass[12pt]{letter}

One of the main benefits of TeXML usage is automatic translation of the TeX special symbols.

Example of translation of special TeX symbols
TeXML TeX
<TeXML>\section{No&#xa0;break}</TeXML>
$\backslash$section\{No~break\}

The TeXML processor supports different output encodings and escapes out-of-encoding chars automatically.

Example of translation of non-ASCII characters
TeXML
<TeXML>&#x422;&#x435;&#x425;</TeXML>
TeX in ASCII encoding
\cyrchar\CYRT \cyrchar\cyre \cyrchar\CYRH 
TeX in Russian encoding
TeX

Rationalities and objectives of TeXML were presented by Douglas Lovell at the Tex Users Group meeting in 1999. His paper is available online on the TUG site: "TeXML: Typesetting XML with TeX" (PDF, 180 Kb). He also wrote TeXMLatte, a Java implementation of TeXML by IBM alphaWorks, but now his realization "has been retired".

The new TeXML processor is written in Python and is published under GPL. Software can be downloaded from the SourceForge project files area.

| See all 8 comments

Newest comments

Re: TeXML: an XML vocabulary for TeX (olpa - 02:49, 22 Apr 2004)
Paul, thank you very much for support and comments! I plan to answer you in private.
Re: TeXML: an XML vocabulary for TeX (Paul Tchistopolskii - 19:56, 21 Apr 2004)
Oleg, great project. It has two sides in it.

1. TeXML vocabulary is a nice scientific exercise ...
Re: TeXML: an XML vocabulary for TeX (olpa - 11:04, 16 Apr 2004)
Hi Maarten, you wrote: "Since one can generate plain TeX code directly with XSL...". But the main po ...
Re: TeXML: an XML vocabulary for TeX (Maarten Wijnen - 06:17, 16 Apr 2004)
I fail to see the importance of this new XML-dialect. Maybe I'm wrong, if so, please enlighten me. A ...
  
xmlhack: developer news from the XML community

Front page | Search | Find XML jobs

Related categories
Tools