From: paul at prescod.net (Paul Prescod)
Date: Thu, 22 Apr 1999 21:46:30 GMT
Subject: >>> Down-Translation? <<<
References: <7fo16e$810$1@usenet49.supernews.com>
Message-ID: <371F98B6.66A0515D@prescod.net>
X-UID: 113                                                  

Nagwa Abdel-Mottaleb wrote:
> 
> Greetings:
> 
> I am looking for a suitable language that will enable me to
> down-translate XML files into something like LaTeX files.
> Is it easy to use Python for this process? For example,
> how easy it is to write code segments that enable to
> translate

You want to find out about the Python XML sig.

http://www.python.org/sigs/xml-sig

You can use the code from the xml-sig to build a DOM which is an in-memory
tree model of the data. Then you can walk the DOM and output the relevant
LaTeX tags using "sys.stdout.write" or something like it.

-- 
 Paul Prescod  - ISOGEN Consulting Engineer speaking for only himself
 http://itrc.uwaterloo.ca/~papresco

"The Excursion [Sport Utility Vehicle] is so large that it will come
equipped with adjustable pedals to fit smaller drivers and sensor 
devices that warn the driver when he or she is about to back into a
Toyota or some other object." -- Dallas Morning News




