This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
sorting by attribute
- To: "xsl list" <xsl-list at mulberrytech dot com>
- Subject: sorting by attribute
- From: "Dave Pawson" <dave dot pawson at virgin dot net>
- Date: Sat, 26 Feb 2000 07:56:37 -0000
- Reply-To: xsl-list at mulberrytech dot com
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