>>> Down-Translation? <<<
Paul Prescod
paul at prescod.net
Thu Apr 22 17:46:30 EDT 1999
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
More information about the Python-list
mailing list