1.1 --- a/scripts/xslform_extract.py Sun Oct 02 01:10:50 2005 +0000
1.2 +++ b/scripts/xslform_extract.py Sun Oct 02 01:11:21 2005 +0000
1.3 @@ -13,7 +13,7 @@
1.4 except IndexError:
1.5 print "Please specify an output template, an output filename and an element identifier."
1.6 print "For example:"
1.7 - print "extract.py output.xsl output_element.xsl element"
1.8 + print "xslform_extract.py output.xsl output_element.xsl element"
1.9 sys.exit(1)
1.10
1.11 XSLForms.Prepare.make_stylesheet_fragment(input_xml, output_xml, element_id)
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/scripts/xslform_input.py Sun Oct 02 01:11:21 2005 +0000
2.3 @@ -0,0 +1,20 @@
2.4 +#!/usr/bin/env python
2.5 +
2.6 +"Prepare an input stylesheet."
2.7 +
2.8 +import XSLForms.Prepare
2.9 +import sys
2.10 +
2.11 +if __name__ == "__main__":
2.12 + try:
2.13 + input_xml = sys.argv[1]
2.14 + output_xml = sys.argv[2]
2.15 + except IndexError:
2.16 + print "Please specify a template and an output filename."
2.17 + print "For example:"
2.18 + print "xslform_input.py template.xhtml output.xsl"
2.19 + sys.exit(1)
2.20 +
2.21 + XSLForms.Prepare.make_input_stylesheet(input_xml, output_xml)
2.22 +
2.23 +# vim: tabstop=4 expandtab shiftwidth=4
3.1 --- a/scripts/xslform_output.py Sun Oct 02 01:10:50 2005 +0000
3.2 +++ b/scripts/xslform_output.py Sun Oct 02 01:11:21 2005 +0000
3.3 @@ -15,7 +15,7 @@
3.4 except IndexError:
3.5 print "Please specify an input filename, a template filename and an output filename."
3.6 print "For example:"
3.7 - print "output.py input.xml output.xsl output.xhtml"
3.8 + print "xslform_output.py input.xml output.xsl output.xhtml"
3.9 sys.exit(1)
3.10
3.11 proc = XSLOutput.Processor([trans_xsl])
4.1 --- a/scripts/xslform_prepare.py Sun Oct 02 01:10:50 2005 +0000
4.2 +++ b/scripts/xslform_prepare.py Sun Oct 02 01:11:21 2005 +0000
4.3 @@ -12,7 +12,7 @@
4.4 except IndexError:
4.5 print "Please specify a template and an output filename."
4.6 print "For example:"
4.7 - print "prepare.py template.xhtml output.xsl"
4.8 + print "xslform_prepare.py template.xhtml output.xsl"
4.9 sys.exit(1)
4.10
4.11 XSLForms.Prepare.make_stylesheet(input_xml, output_xml)