Luigi and Khaled,

thanks a lot for your replies! Luigi: I had a look at python lxml; it looks very powerful and interesting, and I will try and see if can make use of it. Why do you translate your xml sources into tex instead of using the mkiv mechanism for processing xml, is it because of speed?

Khaled: I have to see if I can tweak the OpenOffice docbook converter to keep more of the formatting; in its default state, it drops too much important stuff...

Right now, I have followed Patrick's advice. I've installed saxon9 and am writing a xslt stylesheet to translate the openoffice xml into a cleaner and easier to handle format. I'm making progress... Maybe we should put something like this on the wiki and make it a collaborative effort - I can only write rules for stuff that occurs in my documents, and that is of course only a subset of what OpenOffice has, so it would be good to add rules as people find interesting features.

All best

Thomas

On Feb 15, 2009, at 10:39 AM, luigi scarso wrote:

If you know python
http://wiki.services.openoffice.org/wiki/PyUNO_bridge
http://opendocumentfellowship.com/projects/odfpy
For xml the choice is
http://codespeak.net/lxml/

A native xml db, with XQuery and python binding
http://www.oracle.com/technology/products/berkeley-db/xml/index.html



And this is my experience :
I'm programming in TeX (with context) , lua / python (they are
similar) and xslt .
For every project  if I can I use lxml to manage xml sources, because
it includes xslt but not viceversa.
The goal is to translate xml in tex in the quickest way, and let mkiv
to do the hard word.
I have not a good feeling with xslt, because is not so powerful as
lxml, and clearly is not a competitor of TeX .

If I need storage, dbxml is good, and XQuery+lxml is powerful enought .

OO has also docbook exporter
http://www.docbook.org/
docbook
is rich and with a good collection of xsl stylesheets to translate xml to html
but maybe is ...too much .

--
luigi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to