2007-02-28 | paulb | file changeset files shortlog | [project @ 2007-02-28 23:44:13 by paulb] Added WebStack as a build dependency so that the examples are generated. |
paulb@357 | 1 | #!/usr/bin/env python |
paulb@357 | 2 | |
paulb@357 | 3 | "Prepare a template schema." |
paulb@357 | 4 | |
paulb@357 | 5 | import XSLForms.Prepare |
paulb@357 | 6 | import sys |
paulb@357 | 7 | |
paulb@357 | 8 | if __name__ == "__main__": |
paulb@357 | 9 | try: |
paulb@357 | 10 | input_xml = sys.argv[1] |
paulb@357 | 11 | output_xml = sys.argv[2] |
paulb@357 | 12 | except IndexError: |
paulb@357 | 13 | print "Please specify a template and an schema filename." |
paulb@357 | 14 | print "For example:" |
paulb@357 | 15 | print "xslform_schema.py template.xhtml schema.xml" |
paulb@357 | 16 | sys.exit(1) |
paulb@357 | 17 | |
paulb@357 | 18 | XSLForms.Prepare.make_schema(input_xml, output_xml) |
paulb@357 | 19 | |
paulb@357 | 20 | # vim: tabstop=4 expandtab shiftwidth=4 |