2007-01-18 | paulb | file changeset files shortlog | [project @ 2007-01-18 23:34:40 by paulb] Updated release information. |
paulb@537 | 1 | #!/usr/bin/env python |
paulb@537 | 2 | |
paulb@537 | 3 | "Fix a template document's namespaces." |
paulb@537 | 4 | |
paulb@537 | 5 | import XSLForms.Prepare |
paulb@537 | 6 | import sys |
paulb@537 | 7 | |
paulb@537 | 8 | if __name__ == "__main__": |
paulb@537 | 9 | try: |
paulb@537 | 10 | input_xml = sys.argv[1] |
paulb@537 | 11 | output_xml = sys.argv[2] |
paulb@537 | 12 | except IndexError: |
paulb@537 | 13 | print "Please specify template input and result filenames." |
paulb@537 | 14 | print "For example:" |
paulb@537 | 15 | print "xslform_fix.py template.xhtml template_new.xhtml" |
paulb@537 | 16 | sys.exit(1) |
paulb@537 | 17 | |
paulb@537 | 18 | XSLForms.Prepare.fix_namespaces(input_xml, output_xml) |
paulb@537 | 19 | |
paulb@537 | 20 | # vim: tabstop=4 expandtab shiftwidth=4 |