Re: [xslt] XSL Sort + ICU

On Tue, Nov 26, 2002 at 11:17:43AM -0000, Richard Jinks wrote:
> Hi again
> One more quick question -
> I've made all the changes required to make xsltDoSortFunction() pluggable,
> but have hit a small snag trying to write my replacement ICU version.


> The existing xlstDoSortFunction() calls xsltComputeSortResult() twice which
> is defined as a static function in xsltutils.c.
> I'm not 100% sure what xsltComputeSortResult() does but I'm happy to accept
> that it's needed for the sorting. (The comment for it is identical to
> xsltDoSortFunction(), and I've tried stepping through it with the debugger
> and worked out that it likes sorting the node-set into document order
> repeatedly, but not sure what else it is doing).

  yep, I'm starting to forget about those implementation details though :-\

> My question is can I make the function public so the pluggable sort
> functions can call it as well, or will they need to have their own copy of
> xsltComputeSortResult() ?

  yes sounds fine... It would probably have to be added to the win32 export
list too, but one step at a time...


Daniel Veillard      | Red Hat Network  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]