Add <target> to one more testcase (see r8206).
[docutils.git] / sandbox / xml2rst / xml2rst.py
blob1fe12831494d7d0f256dbb162541fdaf2f845f76
1 #! /usr/bin/env python
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
19 # 02111-1307, USA.
21 """
22 Convert a docutils XML file to reStructuredText syntax.
23 """
25 ###############################################################################
26 ###############################################################################
27 # Import
29 from xml2rstlib import rst_xslt
31 ###############################################################################
32 ###############################################################################
33 # Variables
35 ###############################################################################
36 ###############################################################################
37 # General functions
39 ###############################################################################
40 ###############################################################################
41 # Specialized functions
43 ###############################################################################
44 ###############################################################################
45 # Classes
47 ########################################################################
48 ##############################################################################
49 # Now work
51 if __name__ == '__main__':
52 rst_xslt.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