summaryrefslogtreecommitdiff
path: root/sandbox/paultremblay/python_interface/scripts/validate_docutils.py
diff options
context:
space:
mode:
authorpaultremblay <paultremblay@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2011-09-26 19:27:15 +0000
committerpaultremblay <paultremblay@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2011-09-26 19:27:15 +0000
commit8c616ca52509e49abfbb2b4013587fe62db2fd17 (patch)
tree748eedfe3384265e78f5b00a49838702f8f2e17b /sandbox/paultremblay/python_interface/scripts/validate_docutils.py
parent3929d5c5aa6463da2451c38fde34356318311dd6 (diff)
downloaddocutils-8c616ca52509e49abfbb2b4013587fe62db2fd17.tar.gz
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
Diffstat (limited to 'sandbox/paultremblay/python_interface/scripts/validate_docutils.py')
-rwxr-xr-xsandbox/paultremblay/python_interface/scripts/validate_docutils.py10
1 files changed, 10 insertions, 0 deletions
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)