[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Sort problem

Subject: Re: Sort problem
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 5 Feb 2001 04:54:03 -0800 (PST)
Re:  Sort problem
At last, here's the correct solution:

The xsl:sort element in the previous stylesheet must be modified to the
following:

<xsl:sort 
select="translate(concat(.,self::*[contains(.,'')]
/following::word[@type='end']), '-', '')"/>

This will work, regardless of what character is used for hyphenation.

Dimitre.

--- Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:
> OK,
> 
> This will work only if your hyphenation character comes before any
> other characters in the words.
> 
> One example is to use"~" instead of "-".
> 
> Interestingly enough, MSXML3 sorts "-" before the alphabetical
> characters and "~" after them.


__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Sort problem
    • Mick - Mon, 5 Feb 2001 05:56:25 -0500 (EST)
      • <Possible follow-ups>
      • Dimitre Novatchev - Mon, 5 Feb 2001 06:49:21 -0500 (EST)
      • Dimitre Novatchev - Mon, 5 Feb 2001 07:31:23 -0500 (EST)
      • Dimitre Novatchev - Mon, 5 Feb 2001 07:54:13 -0500 (EST) <=
        • Mick - Mon, 5 Feb 2001 08:54:25 -0500 (EST)
        • Jeni Tennison - Mon, 5 Feb 2001 10:44:42 -0500 (EST)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.