XSLTools

scripts/xslform_input.py

371:f2710049be3e
2005-11-01 paulb [project @ 2005-11-01 16:47:22 by paulb] Added affected element information to selector-field annotations.
     1 #!/usr/bin/env python     2      3 "Prepare an input stylesheet."     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 output filename."    14         print "To suppress the initialisation of enumerations, specify --noenum last."    15         print "For example:"    16         print "xslform_input.py template.xhtml output.xsl --noenum"    17         sys.exit(1)    18     19     XSLForms.Prepare.make_input_stylesheet(input_xml, output_xml, "--noenum" not in sys.argv)    20     21 # vim: tabstop=4 expandtab shiftwidth=4