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

Re: sorting product descriptions

Subject: Re: sorting product descriptions
From: Tobias Reif <tobiasreif@xxxxxxxxx>
Date: Thu, 26 Apr 2001 23:41:37 -0700 (PDT)
Re:  sorting product descriptions
 Francis Norton <francis@xxxxxxxxxxx> wrote:
> do you simply have some sample data
> values and the comparison rules we could look at?

The XSLT, and sample in- and output (simplified) are
at
http://www.pinkjuice.com/temp/XSLT/sort-products/
The simplified input:


<products>
	<product id="a_a_00_03">
		1
	</product>
	<product id="a_a_00_01">
		2
	</product>
	<product id="a_a_00_02">
		3
	</product>	
	<product id="a_a_00_04">
		4
	</product>
	<!--	

	<product id="a_a_30_50">
		5
	</product>
	<product id="a_a_60_20">
		6
	</product>
	<product id="a_a_30_20">
		7
	</product>
	 three digits group
	<product id="a_a_100_30">
		8
	</product>
	 three pairs
	<product id="a_a_90_30_20">
		9
	</product>
     -->
</products>

and the current output, which is correct

<products>
   <product id="a_a_00_01">
		2
	</product>
   <product id="a_a_00_02">
		3
	</product>
   <product id="a_a_00_03">
		1
	</product>
   <product id="a_a_00_04">
		4
	</product>
</products>

But the XSLT works only with these "ideal" values.

Tobi

=====
Tobias Reif
http://www.pinkjuice.com/myDigitalProfile.htm

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

 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.