diff options
author | paultremblay <paultremblay@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2011-09-26 19:27:15 +0000 |
---|---|---|
committer | paultremblay <paultremblay@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2011-09-26 19:27:15 +0000 |
commit | 8c616ca52509e49abfbb2b4013587fe62db2fd17 (patch) | |
tree | 748eedfe3384265e78f5b00a49838702f8f2e17b /sandbox/paultremblay/python_interface/scripts/validate_docutils.py | |
parent | 3929d5c5aa6463da2451c38fde34356318311dd6 (diff) | |
download | docutils-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-x | sandbox/paultremblay/python_interface/scripts/validate_docutils.py | 10 |
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) |