1.1 --- a/XSLForms/Resources.py Sun Oct 09 00:46:12 2005 +0000
1.2 +++ b/XSLForms/Resources.py Sun Oct 09 00:46:35 2005 +0000
1.3 @@ -141,6 +141,19 @@
1.4 XSLForms.Prepare.ensure_stylesheet_fragment(output_path, fragment_path, node_identifier)
1.5 return fragment_path
1.6
1.7 + def prepare_parameters(self, parameters):
1.8 +
1.9 + """
1.10 + Prepare the stylesheet parameters from the given request 'parameters'.
1.11 + This is most useful when preparing fragments for in-page update output.
1.12 + """
1.13 +
1.14 + element_path = parameters.get("element-path", [""])[0]
1.15 + if element_path:
1.16 + return {"element-path" : element_path}
1.17 + else:
1.18 + return {}
1.19 +
1.20 def send_output(self, trans, stylesheet_filenames, document, stylesheet_parameters=None,
1.21 stylesheet_expressions=None, references=None):
1.22