2004-12-21 | paulb | raw annotate files changeset graph | [project @ 2004-12-21 19:23:58 by paulb] Introduced a new extension function, "field-name", which works correctly with elements transformed from attributes (eg. those which can have a range of values) as well as with normal attribute references. (See the "category" field names for an illustration of "field-name".) |
1 #!/usr/bin/env python 2 3 "Prepare a templating 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 "For example:" 15 print "prepare.py template.xhtml output.xsl" 16 sys.exit(1) 17 18 XSLForms.Prepare.make_stylesheet(input_xml, output_xml) 19 20 # vim: tabstop=4 expandtab shiftwidth=4