2007-09-08 | paulb | file changeset files shortlog | [project @ 2007-09-08 16:21:49 by paulb] Added Ubuntu Feisty packaging files. |
paulb@431 | 1 | #!/usr/bin/env python |
paulb@431 | 2 | |
paulb@431 | 3 | "Prepare a template with expanded macros." |
paulb@431 | 4 | |
paulb@431 | 5 | import XSLForms.Prepare |
paulb@431 | 6 | import sys |
paulb@431 | 7 | |
paulb@431 | 8 | if __name__ == "__main__": |
paulb@431 | 9 | try: |
paulb@431 | 10 | input_xml = sys.argv[1] |
paulb@431 | 11 | output_xml = sys.argv[2] |
paulb@431 | 12 | except IndexError: |
paulb@431 | 13 | print "Please specify a template and an output filename." |
paulb@431 | 14 | print "For example:" |
paulb@431 | 15 | print "xslform_preparemacro.py template.xhtml output.xhtml" |
paulb@431 | 16 | sys.exit(1) |
paulb@431 | 17 | |
paulb@431 | 18 | XSLForms.Prepare.make_stylesheet(input_xml, output_xml, ["PrepareMacro.xsl"]) |
paulb@431 | 19 | |
paulb@431 | 20 | # vim: tabstop=4 expandtab shiftwidth=4 |