OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: RE: DOCBOOK-APPS: Sorting and non-en_US indexes

I think you can rule out the version of Java as an issue. I'm getting it
to work with java 1.3.1.

I can get it to use Compare_ja in two ways:

java -Duser.language=ja ...


adding lang="ja" (or an attribute value template that gets the same
thing) to _all_ the xsl:sorts in autoidx.xsl. If you have lang set on
the xsl:sort, it appears to use that instead of the user.language
setting passed in from the command line.

Here's what I get in the verbosity:

[Loaded com.icl.saxon.sort.SortKeyDefinition]
[Loaded com.icl.saxon.sort.Comparer]
[Loaded com.icl.saxon.sort.TextComparer]
[Loaded com.icl.saxon.sort.StringComparer]
[Loaded com.icl.saxon.sort.Compare_en]
[Loaded com.icl.saxon.sort.DoubleComparer]
[Loaded com.icl.saxon.sort.Compare_ja]
[Loaded com.icl.saxon.sort.DescendingComparer]

...and it sorts a tricky pair of Japanese words correctly. 


> -----Original Message-----
> From: Togan Muftuoglu [mailto:toganm@users.sourceforge.net]
> Sent: Tuesday, September 24, 2002 5:36 AM
> To: docbook-apps@lists.oasis-open.org
> Subject: Re: DOCBOOK-APPS: Sorting and non-en_US indexes
> * Jirka Kosek; <jirka@kosek.cz> on 24 Sep, 2002 wrote:
> >
> ><xsl:template match="/">
> >  <xsl:for-each select="//text()">
> >    <xsl:sort select="." lang="tr"/>
> >    <xsl:value-of select="."/>
> >  </xsl:for-each>
> ></xsl:template>
> >
> >and see what is happening.
> OK will give it a try
> >I know that Sun had two versions of Java run-time (at least 
> in 1.2 and
> >1.3) -- standard and international. Standard version didn't supported
> >additional encodings, collating sequences and so on. I must 
> always use
> >international version. Might be this is your problem.
> Looks like
> toganm@earth:~/projects/kitap> java -version
> java version "1.3.1_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
> Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC