2008-06-20 | paulb | raw annotate files changeset graph | [project @ 2008-06-20 23:24:43 by paulb] Made get_document support getting the current activity's document if no name is given. Fixed current document retrieval so that the document is retrieved dynamically using the name. Added support for finding out whether a new document has been created. |
1 #!/usr/bin/env python 2 3 "Prepare a template schema." 4 5 import XSLForms.Prepare 6 import sys 7 8 if __name__ == "__main__": 9 try: 10 input_xml = sys.argv[1] 11 output_xml = sys.argv[2] 12 except IndexError: 13 print "Please specify a template and an schema filename." 14 print "For example:" 15 print "xslform_schema.py template.xhtml schema.xml" 16 sys.exit(1) 17 18 XSLForms.Prepare.make_schema(input_xml, output_xml) 19 20 # vim: tabstop=4 expandtab shiftwidth=4