1.1 --- a/examples/Common/Dictionary/__init__.py Sun Oct 09 00:48:16 2005 +0000
1.2 +++ b/examples/Common/Dictionary/__init__.py Sun Oct 09 00:48:21 2005 +0000
1.3 @@ -113,18 +113,14 @@
1.4
1.5 trans.set_content_type(WebStack.Generic.ContentType("application/xhtml+xml", self.encoding))
1.6
1.7 - # Define the stylesheet parameters.
1.8 -
1.9 - stylesheet_parameters = {}
1.10 -
1.11 # Ensure that an output stylesheet exists.
1.12
1.13 if in_page_resource in self.in_page_resources.keys():
1.14 trans_xsl = self.prepare_fragment("words", in_page_resource)
1.15 - element_path = parameters.get("element-path", [""])[0]
1.16 - stylesheet_parameters["element-path"] = element_path
1.17 + stylesheet_parameters = self.prepare_parameters(parameters)
1.18 else:
1.19 trans_xsl = self.prepare_output("words")
1.20 + stylesheet_parameters = {}
1.21
1.22 # Complete the response.
1.23
2.1 --- a/examples/Common/VerySimple/__init__.py Sun Oct 09 00:48:16 2005 +0000
2.2 +++ b/examples/Common/VerySimple/__init__.py Sun Oct 09 00:48:21 2005 +0000
2.3 @@ -79,18 +79,14 @@
2.4
2.5 trans.set_content_type(WebStack.Generic.ContentType("application/xhtml+xml", self.encoding))
2.6
2.7 - # Define the stylesheet parameters.
2.8 -
2.9 - stylesheet_parameters = {}
2.10 -
2.11 # Ensure that an output stylesheet exists.
2.12
2.13 if in_page_resource in self.in_page_resources.keys():
2.14 trans_xsl = self.prepare_fragment("structure", in_page_resource)
2.15 - element_path = parameters.get("element-path", [""])[0]
2.16 - stylesheet_parameters["element-path"] = element_path
2.17 + stylesheet_parameters = self.prepare_parameters(parameters)
2.18 else:
2.19 trans_xsl = self.prepare_output("structure")
2.20 + stylesheet_parameters = {}
2.21
2.22 # Complete the response.
2.23