# HG changeset patch # User paulb # Date 1130802885 0 # Node ID 5a34b5514b6a80326568b357bae39f7667f41541 # Parent 0300c58e134f9e038992f7fd62e4873c3fa8516d [project @ 2005-10-31 23:54:45 by paulb] Added an option to suppress input stylesheet enumeration initialisation. diff -r 0300c58e134f -r 5a34b5514b6a scripts/xslform_input.py --- a/scripts/xslform_input.py Thu Oct 27 16:34:39 2005 +0000 +++ b/scripts/xslform_input.py Mon Oct 31 23:54:45 2005 +0000 @@ -11,10 +11,11 @@ output_xml = sys.argv[2] except IndexError: print "Please specify a template and an output filename." + print "To suppress the initialisation of enumerations, specify --noenum last." print "For example:" - print "xslform_input.py template.xhtml output.xsl" + print "xslform_input.py template.xhtml output.xsl --noenum" sys.exit(1) - XSLForms.Prepare.make_input_stylesheet(input_xml, output_xml) + XSLForms.Prepare.make_input_stylesheet(input_xml, output_xml, "--noenum" not in sys.argv) # vim: tabstop=4 expandtab shiftwidth=4