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

Re: Sorting Problem

Subject: Re: Sorting Problem
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Sat, 9 Feb 2002 12:40:24 +0000
Re:  Sorting Problem
Hi Sachi,

> I want to sort AttribValue tag only if AttribName tag is KTIRToolName.
   
It's not especially clear from your description what you're after. I
think that you're probably trying to sort the UserAttribute elements
whose AttribName is KTIRToolName, by their AttribValues. If so, then
you want:

  <xsl:for-each select="UserAttribute[AttribName = 'KTIRToolName']">
    <xsl:sort select="AttribValue" />
    ...
  </xsl:for-each>

Another possibility is that you want to do something with all the
UserAttribute elements, but want those UserAttribute elements whose
AttribName has the value of 'KTIRToolName' to be sorted by their
AttribValue. That would be:

  <xsl:for-each select="UserAttribute">
    <xsl:sort select="AttribValue[../AttribName = 'KTIRToolName']" />
    ...
  </xsl:for-each>

If neither of these are what you're after, I recommend that you post
again with a sample of the result that you're aiming for.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.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.