1.1 --- a/examples/Common/VerySimple/__init__.py Sat Dec 03 01:53:18 2005 +0000
1.2 +++ b/examples/Common/VerySimple/__init__.py Sat Dec 03 01:53:36 2005 +0000
1.3 @@ -22,17 +22,21 @@
1.4 encoding = "utf-8"
1.5 template_resources = {
1.6 #"structure" : ("structure_template.xhtml", "structure_output.xsl")
1.7 - "structure" : ("structure_multivalue_template.xhtml", "structure_output.xsl")
1.8 + #"structure" : ("structure_multivalue_template.xhtml", "structure_output.xsl")
1.9 + "structure" : ("structure_multivalue_label_template.xhtml", "structure_output.xsl")
1.10 }
1.11 init_resources = {
1.12 #"structure" : ("structure_template.xhtml", "structure_input.xsl")
1.13 - "structure" : ("structure_multivalue_template.xhtml", "structure_input.xsl")
1.14 + #"structure" : ("structure_multivalue_template.xhtml", "structure_input.xsl")
1.15 + "structure" : ("structure_multivalue_label_template.xhtml", "structure_input.xsl")
1.16 }
1.17 transform_resources = {
1.18 "comments" : ["structure_comments.xsl"]
1.19 }
1.20 document_resources = {
1.21 - "types" : "structure_types.xml"
1.22 + #"types" : "structure_types.xml"
1.23 + "types" : "structure_types_label.xml",
1.24 + "translations" : "translations.xml"
1.25 }
1.26 in_page_resources = {
1.27 "comments" : ("structure_output_comments.xsl", "comment-node")
1.28 @@ -90,7 +94,9 @@
1.29
1.30 # Complete the response.
1.31
1.32 - self.send_output(trans, [trans_xsl], structure, stylesheet_parameters)
1.33 + stylesheet_parameters["locale"] = trans.get_content_languages()[0]
1.34 + self.send_output(trans, [trans_xsl], structure, stylesheet_parameters,
1.35 + references={"translations" : self.prepare_document("translations")})
1.36
1.37 # Site map initialisation.
1.38