# HG changeset patch # User paulb # Date 1128300804 0 # Node ID 03cee0e46a02574b5314b20dbc3b4352403730b5 # Parent 9289fa4a17d69816d786a57193d57deaba1b3633 [project @ 2005-10-03 00:53:24 by paulb] Introduced input/initialiser stylesheets in place of the types stylesheets previously used. diff -r 9289fa4a17d6 -r 03cee0e46a02 examples/Common/VerySimple/__init__.py --- a/examples/Common/VerySimple/__init__.py Mon Oct 03 00:52:36 2005 +0000 +++ b/examples/Common/VerySimple/__init__.py Mon Oct 03 00:53:24 2005 +0000 @@ -24,10 +24,12 @@ #"structure" : ("structure_template.xhtml", "structure_output.xsl") "structure" : ("structure_multivalue_template.xhtml", "structure_output.xsl") } + init_resources = { + #"structure" : ("structure_template.xhtml", "structure_input.xsl") + "structure" : ("structure_multivalue_template.xhtml", "structure_input.xsl") + } transform_resources = { - #"types" : ["structure_types.xsl"] - #"types" : ["structure_multivalue_types.xsl"] - "types" : ["structure_multivalue_types.xsl", "structure_comments.xsl"] + "comments" : ["structure_comments.xsl"] } document_resources = { "types" : "structure_types.xml" @@ -64,9 +66,14 @@ # Transform, adding enumerations/ranges. - types_xsl_list = self.prepare_transform("types") + structure_xsl = self.prepare_initialiser("structure") types_xml = self.prepare_document("types") - structure = self.get_result(types_xsl_list, structure, references={"types" : types_xml}) + structure = self.get_result([structure_xsl], structure, references={"type" : types_xml}) + + # Add the comments. + + comments_xsl_list = self.prepare_transform("comments") + structure = self.get_result(comments_xsl_list, structure) # Start the response.