2 # -*- coding: utf-8 -*-
4 # Copyright (C) 2009-2013 Stefan Merten
6 # xml2rst.py is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published
8 # by the Free Software Foundation; either version 2 of the License,
9 # or (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 Convert a docutils XML file to reStructuredText syntax.
25 ###############################################################################
26 ###############################################################################
29 from xml2rstlib
import rst_xslt
31 ###############################################################################
32 ###############################################################################
35 ###############################################################################
36 ###############################################################################
39 ###############################################################################
40 ###############################################################################
41 # Specialized functions
43 ###############################################################################
44 ###############################################################################
47 ########################################################################
48 ##############################################################################
51 if __name__
== '__main__':
54 ##############################################################################
55 ##############################################################################
57 # TODO Move from XSLT to Python implementation step by step by replacing
58 # XSLT-code by Python code through extensions and other means