1.1 --- a/examples/Common/VerySimple/__init__.py Tue Jul 19 16:00:54 2005 +0000
1.2 +++ b/examples/Common/VerySimple/__init__.py Tue Jul 19 21:02:23 2005 +0000
1.3 @@ -5,6 +5,7 @@
1.4 import WebStack.Generic
1.5 import XSLForms.Resources
1.6 import XSLForms.Utils
1.7 +import XSLOutput
1.8 import os
1.9
1.10 # Resource classes.
1.11 @@ -43,6 +44,13 @@
1.12 XSLForms.Utils.remove_elements(selectors.get("remove"))
1.13 XSLForms.Utils.add_elements(selectors.get("add"), "item")
1.14
1.15 + # Transform, adding enumerations/ranges.
1.16 +
1.17 + types_xsl = os.path.join(self.resource_dir, "structure_types.xsl")
1.18 + types_xml = os.path.join(self.resource_dir, "structure_types.xml")
1.19 + proc = XSLOutput.Processor([types_xsl], references={"types" : types_xml})
1.20 + structure = proc.get_result(structure)
1.21 +
1.22 # Start the response.
1.23
1.24 trans.set_content_type(WebStack.Generic.ContentType("application/xhtml+xml", self.encoding))