# HG changeset patch # User paulb # Date 1130430637 0 # Node ID b5d6c00aae2f0417955d0a66bd847f5c67a59412 # Parent f9e5276f49cc4a6859e54dca40c499718b7bf1a9 [project @ 2005-10-27 16:30:37 by paulb] Added a schema generating script. diff -r f9e5276f49cc -r b5d6c00aae2f scripts/xslform_schema.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/xslform_schema.py Thu Oct 27 16:30:37 2005 +0000 @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +"Prepare a template schema." + +import XSLForms.Prepare +import sys + +if __name__ == "__main__": + try: + input_xml = sys.argv[1] + output_xml = sys.argv[2] + except IndexError: + print "Please specify a template and an schema filename." + print "For example:" + print "xslform_schema.py template.xhtml schema.xml" + sys.exit(1) + + XSLForms.Prepare.make_schema(input_xml, output_xml) + +# vim: tabstop=4 expandtab shiftwidth=4