1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/scripts/xslform_fix.py Sat Nov 11 01:43:47 2006 +0000
1.3 @@ -0,0 +1,20 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +"Fix a template document's namespaces."
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 template input and result filenames."
1.17 + print "For example:"
1.18 + print "xslform_fix.py template.xhtml template_new.xhtml"
1.19 + sys.exit(1)
1.20 +
1.21 + XSLForms.Prepare.fix_namespaces(input_xml, output_xml)
1.22 +
1.23 +# vim: tabstop=4 expandtab shiftwidth=4