From owner-freebsd-doc@FreeBSD.ORG Wed Dec 17 16:09:02 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA86516A4CE; Wed, 17 Dec 2003 16:09:02 -0800 (PST) Received: from Kain.sumuk.de (Kain.sumuk.de [213.221.86.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3C4043D2D; Wed, 17 Dec 2003 16:08:59 -0800 (PST) (envelope-from vincent@sumuk.de) Received: from Moses.earth.sol (Moses.earth.sol [192.168.1.1]) by Kain.sumuk.de (8.12.10/8.12.10) with ESMTP id hBI08u5s083704; Thu, 18 Dec 2003 01:08:56 +0100 (CET) (envelope-from vincent@sumuk.de) Received: from Moses.earth.sol (localhost.earth.sol [127.0.0.1]) by Moses.earth.sol (8.12.5/8.12.5) with ESMTP id hBI08tPg045041; Thu, 18 Dec 2003 01:08:55 +0100 (CET) (envelope-from vincent@Moses.earth.sol) Received: (from vincent@localhost) by Moses.earth.sol (8.12.5/8.12.5/Submit) id hBI08ren045040; Thu, 18 Dec 2003 01:08:54 +0100 (CET) Date: Thu, 18 Dec 2003 01:08:52 +0100 From: Martin Heinen To: Martin Horcicka Message-ID: <20031218010852.A44498@sumuk.de> References: <20031215154521.O38847@www.freebsd.cz> <20031216.011538.104073140.hrs@eos.ocn.ne.jp> <20031215174940.B38847@www.freebsd.cz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20031215174940.B38847@www.freebsd.cz>; from horcicka@freebsd.cz on Mon, Dec 15, 2003 at 06:11:10PM +0100 cc: freebsd-doc@freebsd.org cc: Hiroki Sato Subject: Re: Problems with mirrors.xml and advisories.xml X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2003 00:09:02 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Mon, Dec 15, 2003 at 06:11:10PM +0100, Martin Horcicka wrote: > Hiroki Sato (2003-12-16 01:15 +0900): > > The menu entries will be sorted in alphabetical order of *translated* > > country name. Didn't it work properly? If you use transtable but > > the sort order is wrong, please show me the results (and the changes > > you added). At least I know it works fine for www/ja. > > > > Or, is non-alphabetical order needed? > > Yes, the menu entries are sorted in alphabetical order of translated country > names but the sort ordering seems to be English - e.g. all non-English > characters are sorted after the English ones. What I want is Czech sort > ordering. I've exported the doc and www trees and added doc/cs_CZ.ISO8859-2 > and www/cs (which are not in the official cvs repository yet) to: I encountered the same problem when sorting by translated country names. Attached is a simple test case: Running »xsltproc sort.xsl names.xml« will produce the following list: | Deutschland | Dänemark | a | b | c | Ä | ä This is wrong, »names.xml« is already sorted so the order should not change. It seems that language dependent sorting is not supported in textproc/libxslt. The file »FEATURES« of libxslt-1.1.0 contains the following: | YES xsl:sort | YES select = string-expression | NO lang = { nmtoken } Hiroki's work is such a big time saver that I consider to commit the German version with the slightly displaced ordering. This might give me the time to think about a solution for the problem instead of sorting manually :-) -- Marxpitn --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="names.xml" Content-Transfer-Encoding: 8bit a ä b c Ä Dänemark Deutschland --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="sort.xsl" --vtzGhvizbBRQ85DL--