# HG changeset patch # User paulb # Date 1203197708 0 # Node ID 1121cf3652ed53703cbca38a1d75a6fc233f0288 # Parent 8c3ae4ab60b1d3c29a00bb4127b47e94469418fb [project @ 2008-02-16 21:35:08 by paulb] Added a call to the xinclude method of input documents, permitting templates to employ XInclude declarations when used with capable versions of libxml2dom. diff -r 8c3ae4ab60b1 -r 1121cf3652ed XSLForms/Prepare.py --- a/XSLForms/Prepare.py Sat Feb 16 21:03:07 2008 +0000 +++ b/XSLForms/Prepare.py Sat Feb 16 21:35:08 2008 +0000 @@ -3,7 +3,7 @@ """ Preparation of templating stylesheets. -Copyright (C) 2005, 2006 Paul Boddie +Copyright (C) 2005, 2006, 2007, 2008 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free @@ -37,6 +37,8 @@ stylesheets = [os.path.join(resource_dir, stylesheet_name) for stylesheet_name in stylesheet_names] proc = XSLOutput.Processor(stylesheets, parameters=parameters or {}) input = libxml2dom.parse(input_name) + if hasattr(input, "xinclude"): + input.xinclude() proc.send_output(open(output_name, "wb"), encoding, input) # Web template functions.