# HG changeset patch # User paulb # Date 1176403300 0 # Node ID bcf46ac5b49e945eb667c047eb22ddca39572f5f # Parent 809b377cff4484153e0ce1fc8c80d126a591d464 [project @ 2007-04-12 18:41:40 by paulb] Fixed the adoption of low-level nodes so that real document nodes are produced. Updated release information. diff -r 809b377cff44 -r bcf46ac5b49e XSLTools/XSLOutput.py --- a/XSLTools/XSLOutput.py Thu Apr 12 18:41:20 2007 +0000 +++ b/XSLTools/XSLOutput.py Thu Apr 12 18:41:40 2007 +0000 @@ -3,7 +3,7 @@ """ XSL output classes and functions. -Copyright (C) 2005 Paul Boddie +Copyright (C) 2005, 2006, 2007 Paul Boddie This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -120,7 +120,7 @@ result = self._get_result(document) if result is not None: - return libxml2dom.adoptNodes([result])[0] + return libxml2dom.getDOMImplementation().adoptDocument(result) else: raise OutputError, "Transformation failed." diff -r 809b377cff44 -r bcf46ac5b49e XSLTools/__init__.py --- a/XSLTools/__init__.py Thu Apr 12 18:41:20 2007 +0000 +++ b/XSLTools/__init__.py Thu Apr 12 18:41:40 2007 +0000 @@ -20,6 +20,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ -__version__ = "0.4.4" +__version__ = "0.4.5" # vim: tabstop=4 expandtab shiftwidth=4