Eliot:
XSLTC's sorting code is in a different package:
org.apache.xalan.xsltc.dom
The class NodeSortRecord.java defines the following static variable:
protected static Collator _collator = Collator.getInstance();
Thus, it should be locale-aware (using the default locale). I haven't
thought much about this, but I suppose you could change this class to obtain
a collator via some other method (e.g. to provide a business-specific
collator). The rest of the code should work.
You can find additional information about XSLTC's xsl:sort implementation
here:
http://xml.apache.org/xalan-j/xsltc/xsl_sort_design.html
Hope this helps.
-- Santiago
On Monday 25 November 2002 15:43, W. Eliot Kimber wrote:
> I have a general requirement to be able to use locale and/or
> business-rule specific collators with xsl:sort (primarily for use in
> generation of back-of-the-book indexes in FO instances).
>
> It appears from transformer/NodeSorter.java that this is not yet
> implemented. I'm trying to determine the level of effort to implement
> this, ideally in the same way that Saxon 7.x does (allowing you to
> delegate collation to a single object that handles one or more locales).
>
> I've only had time to glance at the code but it didn't look like it
> would be as simple as just plugging in a different Collator implementation.
>
> Has anybody done any sizing or design on this?
>
> We want to be able to use XSLTC to compile our style sheets but we must
> be able to use custom collators.
>
> Thanks,
>
> Eliot