Improve HTML_OUT converter

I rewrote all the test for the html_out converter to use xpath, instead of string comparison. I also add some tests to check the new features I added. You can find the changes in my repo, or in the following patch : test_html_out.diff

I also clean the code I added to the html_out to produce this following patch : html_out.diff

NB : I used html('del') instead of html.del for the del element, since if I use html.del I get the following syntax error :

2010-06-30 15:31:40,873 ERROR MoinMoin.converter2:101 Failed to import converter package html_out: invalid syntax (html_out.py, line 352)
Traceback (most recent call last):
  File "/home/valeuf/dev/2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/__init__.py", line 97, in _load
    imp.load_module(module_complete, *info)
  File "/home/valeuf/dev/2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/html_out.py", line 352
     return self.new_copy(html.del, elem)
                                 ^
 SyntaxError: invalid syntax

Probably because del is a protected keyword in python.

Start work on the DocBook converter

I continue the work on the equivalences. But I also read different ressources about DocBook to think about the best solution for the converter.

Especially, I am currently reading this book : http://www.sagehill.net/docbookxsl/index.html since few days, and also looking for the different project who are using DocBook, and try to see how MoinMoin could be useful to help them.

MoinMoin: ValentinJaniaut/GSoC/Diary/2010-06-30 (last edited 2010-06-30 21:48:28 by ValentinJaniaut)