1.1 --- a/XSLForms/Prepare.py Sat Feb 16 21:03:07 2008 +0000
1.2 +++ b/XSLForms/Prepare.py Sat Feb 16 21:35:08 2008 +0000
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Preparation of templating stylesheets.
1.6
1.7 -Copyright (C) 2005, 2006 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2005, 2006, 2007, 2008 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU Lesser General Public License as published by the Free
1.12 @@ -37,6 +37,8 @@
1.13 stylesheets = [os.path.join(resource_dir, stylesheet_name) for stylesheet_name in stylesheet_names]
1.14 proc = XSLOutput.Processor(stylesheets, parameters=parameters or {})
1.15 input = libxml2dom.parse(input_name)
1.16 + if hasattr(input, "xinclude"):
1.17 + input.xinclude()
1.18 proc.send_output(open(output_name, "wb"), encoding, input)
1.19
1.20 # Web template functions.