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

sorting by attribute

Subject: sorting by attribute
From: "Dave Pawson" <dave.pawson@xxxxxxxxxx>
Date: Sat, 26 Feb 2000 07:56:37 -0000
sorting by attribute
Can XSLT sort by attribute value?

<sender> 
	<a clli="200" b="20"/> 
	<a clli="100" b="10"/> 
	
      </sender> 

Output needed is
<wrapper>
  <a> @clli</a>
  <b> @b </b>
</wrapper>

I can sort by element content. 
REC says

<xsl:sort
  select = string-expression 
  
So, @clli is a string expression.

If I do a for-each on a/@clli
I can't get to the siblings, (no parent)
element a has no content so I can't sort on that.

I'm totally stuck on this one.
Can anyone help please.

Regards, DaveP




 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.