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_fo.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_fo.py')
-rw-r--r-- | sandbox/paultremblay/python_interface/scripts/validate_fo.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sandbox/paultremblay/python_interface/scripts/validate_fo.py b/sandbox/paultremblay/python_interface/scripts/validate_fo.py new file mode 100644 index 000000000..f311f1544 --- /dev/null +++ b/sandbox/paultremblay/python_interface/scripts/validate_fo.py @@ -0,0 +1,12 @@ +#! /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] + +error = docutilsToFo.rst2xml_lib.validate_fo_xsl(xml_file) +if error: + sys.exit(1) |