From 8c616ca52509e49abfbb2b4013587fe62db2fd17 Mon Sep 17 00:00:00 2001 From: paultremblay Date: Mon, 26 Sep 2011 19:27:15 +0000 Subject: Creating a branch. The new branch will reflect the way to use the xsl stylesheets with the pyton interface. I am now going to put a simpler version of the XSL stylesheets in the trunk. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7131 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- .../paultremblay/python_interface/scripts/validate_docutils.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 sandbox/paultremblay/python_interface/scripts/validate_docutils.py (limited to 'sandbox/paultremblay/python_interface/scripts/validate_docutils.py') diff --git a/sandbox/paultremblay/python_interface/scripts/validate_docutils.py b/sandbox/paultremblay/python_interface/scripts/validate_docutils.py new file mode 100755 index 000000000..12aeb0cbd --- /dev/null +++ b/sandbox/paultremblay/python_interface/scripts/validate_docutils.py @@ -0,0 +1,10 @@ +#! /Library/Frameworks/Python.framework/Versions/2.7/bin/python +import sys, os, argparse +import docutilsToFo.rst2xml_lib + +parser = argparse.ArgumentParser(description='validate docutils document') +parser.add_argument('xml_file', nargs=1, help = 'file to validate') +args = parser.parse_args() +xml_file = args.xml_file[0] + +docutilsToFo.rst2xml_lib.validate_docutils(xml_file) -- cgit v1.2.1