Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Issue with xsl:sort - does not differ between 'V' and ''W'?

From: Jon Br&#xE5;ten <valemon@--------->
To:
Date: 2/2/2005 8:33:00 AM
On Tue, 1 Feb 2005 10:24:09 -0000, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> American software vendors have some strange ideas about the collating
> sequences used in various European countries.

I found some interesting reading on this here:
http://www-124.ibm.com/icu/userguide/Collate_Intro.html

This site mentions, among other things, that: 'For example, the
letters "v" and "w" are two different letters according to English.
However, "v" and "w" are considered variant forms of the same letter
in Swedish.'

I've tried setting the 'lang' attribute to influence this behaviour,
using my own class com.icl.saxon.sort.Compare_no (I am in Norway). I
have to mess some more with setting the strength on the Collator
object in my sort class before I know if this worked :)

Jon Breten


> > -----Original Message-----
> > From: Jon Breten [mailto:valemon@xxxxxxxxx]
> > Sent: 01 February 2005 09:40
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: [xsl] Issue with xsl:sort - does not differ between
> > 'V' and ''W'?
> >
> > Hi all,
> > I am trying to sort a node-set by an element that contains lastnames -
> > but it seems the sort algorithm does not differ between 'V' and 'W'.
> >
> > The code is simple enough:
> > <xsl:sort select="LAST_NAME" data-type="text" lang="no" />
> > I have tried both with and without the lang="no" property.
> >
> > The result is a list like the following:
> > "Wabbah"
> > "Vebah"
> > "Weccer"
> > "Vubbih"
> >
> > So, the point is it seems the algorithm regards 'V' and 'W' as the
> > same thing, but correctly sorts on the following characters. Any ideas
> > or input on this? I have checked around, and I cant find anything
> > implying that this is by design - so I'm left wondering what I'm doing
> > wrong here? The output is apparently sorted correct with regard to
> > nodes not starting with V/W.
> >
> > Regards,
> > Jon


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent