diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-09-14 12:35:35 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-09-14 12:35:35 +0000 |
commit | d91befd1407ec654fcaf60fcbac1d8fc8132f293 (patch) | |
tree | e7f55603a4126f7f91f2873749719bd613c98e7c | |
parent | bcd03705542ece1c18cd89acd84b60b9b06ba05e (diff) | |
download | libxslt-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-- | ChangeLog | 7 | ||||
-rw-r--r-- | libxslt/transform.c | 3 | ||||
-rw-r--r-- | libxslt/xsltutils.c | 1 |
3 files changed, 9 insertions, 2 deletions
@@ -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) { |