|
Subject: Re: [xsl] Sorting Problem From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Sat, 9 Feb 2002 12:40:24 +0000 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Sorting Problem, Sachidanandam E K | Thread | [xsl] Differences in XSLT transform, Paul Terray |
| Re: [xsl] XSL output problem, Jeni Tennison | Date | Re: [xsl] How to get a "heading" fr, Jeni Tennison |
| Month |