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

Sort doesn't seem to sort

Subject: Sort doesn't seem to sort
From: "Steve Dondley" <stevedondley@xxxxxxxxx>
Date: Tue, 1 Apr 2003 19:20:15 -0500
sort doesn t sort
I'm learning XML and running trivial examples from a book.  However, I
stumbled on a problem with this XSL code snippet:

      <xsl:for-each select="//vendor" >
      <xsl:sort select="vendor_name"/>
      <h2><xsl:value-of select="vendor_name"/></h2>
      </xsl:for-each>

Within the XML doc, there are vendor names that appear in the following
order in the XML doc:

Conners Chair Company
Just a Vendor
Wally's Wonderful World of Furniture
Crazy Marge's Bed Emporium
Zu Zu's Pedals

When I process the doc with IE 6.0, the vendor names are output in this
order:

Wally's Wonderful World of Furniture
Just a Vendor
Zu Zu's Pedals
Conners Chair Company
Crazy Marge's Bed Emporium

This isn't the expected alphabetical order output.  What gives?


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


Current Thread

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.