summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-09-14 12:35:35 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-09-14 12:35:35 +0000
commitd91befd1407ec654fcaf60fcbac1d8fc8132f293 (patch)
treee7f55603a4126f7f91f2873749719bd613c98e7c
parentbcd03705542ece1c18cd89acd84b60b9b06ba05e (diff)
downloadlibxslt-d91befd1407ec654fcaf60fcbac1d8fc8132f293.tar.gz
libxslt-d91befd1407ec654fcaf60fcbac1d8fc8132f293.tar.bz2
libxslt-d91befd1407ec654fcaf60fcbac1d8fc8132f293.zip
removed a superfluous second sorting of the node set on xsl:copy-of, fixes
* libxslt/transform.c: removed a superfluous second sorting of the node set on xsl:copy-of, fixes #316288 * libxslt/xsltutils.c: marked xsltDocumentSortFunction as slow, obsolete and deprecated :-) Daniel
-rw-r--r--ChangeLog7
-rw-r--r--libxslt/transform.c3
-rw-r--r--libxslt/xsltutils.c1
3 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c7f4975f..22bcaa92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Wed Sep 14 14:30:03 CEST 2005 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/transform.c: removed a superfluous second sorting of
+ the node set on xsl:copy-of, fixes #316288
+ * libxslt/xsltutils.c: marked xsltDocumentSortFunction as slow,
+ obsolete and deprecated :-)
+
Sat Sep 10 14:35:06 CEST 2005 Daniel Veillard <daniel@veillard.com>
* configure.in: check environment for PYTHON, fixes #315367
diff --git a/libxslt/transform.c b/libxslt/transform.c
index 5ad625f5..5bd4d40c 100644
--- a/libxslt/transform.c
+++ b/libxslt/transform.c
@@ -2924,8 +2924,7 @@ xsltCopyOf(xsltTransformContextPtr ctxt, xmlNodePtr node,
#endif
list = res->nodesetval;
if (list != NULL) {
- /* sort the list in document order */
- xsltDocumentSortFunction(list);
+ /* the list is already sorted in document order by XPath */
/* append everything in this order under ctxt->insert */
for (i = 0;i < list->nodeNr;i++) {
if (list->nodeTab[i] == NULL)
diff --git a/libxslt/xsltutils.c b/libxslt/xsltutils.c
index 5c7a4cf3..af762f73 100644
--- a/libxslt/xsltutils.c
+++ b/libxslt/xsltutils.c
@@ -776,6 +776,7 @@ xsltGetQNameURI2(xsltStylesheetPtr style, xmlNodePtr node,
* @list: the node set
*
* reorder the current node list @list accordingly to the document order
+ * This function is slow, obsolete and should not be used anymore.
*/
void
xsltDocumentSortFunction(xmlNodeSetPtr list) {