1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/scripts/xslform_schema.py Thu Oct 27 16:30:37 2005 +0000
1.3 @@ -0,0 +1,20 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +"Prepare a template schema."
1.7 +
1.8 +import XSLForms.Prepare
1.9 +import sys
1.10 +
1.11 +if __name__ == "__main__":
1.12 + try:
1.13 + input_xml = sys.argv[1]
1.14 + output_xml = sys.argv[2]
1.15 + except IndexError:
1.16 + print "Please specify a template and an schema filename."
1.17 + print "For example:"
1.18 + print "xslform_schema.py template.xhtml schema.xml"
1.19 + sys.exit(1)
1.20 +
1.21 + XSLForms.Prepare.make_schema(input_xml, output_xml)
1.22 +
1.23 +# vim: tabstop=4 expandtab shiftwidth=4