This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: RE: how I can select the largest attribute value
- From: Bodrul Haque <Bodrul dot Haque at Synergy-Logistics dot co dot uk>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 18 Jun 2002 15:54:56 +0100
- Subject: RE: [xsl] RE: how I can select the largest attribute value
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Henk,
Excellent! That worked. Thanks
Have a nice afternoon/evening.
Bodrul
-----Original Message-----
From: Henk Meulekamp [mailto:henkm@ccni.nl]
Sent: 18 June 2002 15:42
To: 'xsl-list@lists.mulberrytech.com'
Subject: RE: [xsl] RE: how I can select the largest attribute value
he damn,
that should be:
<xsl:for-each select="/root/element">
<xsl:sort select="@length" data-type="number" order="descending"/>
<xsl:if test="position() = 1">
<xsl:value-of select="@length"/>
</xsl:if>
</xsl:for-each>
| -----Original Message-----
| From: Henk Meulekamp [mailto:henkm@ccni.nl]
| Sent: dinsdag 18 juni 2002 16:35
| To: 'xsl-list@lists.mulberrytech.com'
| Subject: [xsl] RE: how I can select the largest attribute value
|
|
|
| Maybe you can do something like this?
|
| <xsl:for-each select="Root/element[1]">
| <xsl:sort select="@length" data-type="number"
| order="descending"/>
| <xsl:value-of select="@length"/>
| </xsl:for-each>
|
| | -----Original Message-----
| | From: Bodrul Haque [mailto:Bodrul.Haque@synergy-logistics.co.uk]
| | Sent: dinsdag 18 juni 2002 16:23
| | To: 'xsl-list@lists.mulberrytech.com'
| | Subject:
| |
| |
| | Hi List,
| |
| | Can someone please tell me how I can select the largest
| | attribute value from the following xml file, without doing
| |
| | <xsl:value-of select="Root/element[@length="14"]/@length" />.
| |
| | (I don't want to use a hard coded value in the predicate). Is
| | there an Xpath that i can use. Xml file: <Root>
| | <element length="3" />
| | <element length="14" />
| | <element length="1" />
| | <element length="6" />
| | .....
| | </Root>
| |
| | I'm using MSXML3.
| |
| | Thanks in Advance
| |
| | Bodrul
| |
| |
| |
| | --------------------------------------------------------------
| | -------------
| |
| | The information transmitted is intended only for the person
| | or entity to
| | which it is addressed and may contain confidential and/or
| | privileged material. Any views or opinions presented in this
| | Email message are solely those
| | of the author and do not necessarily represent those of Synergy
| | Logistics Limited unless specifically stated.
| | Email communications are not necessarily secure and therefore
| | Synergy Logistics Limited does not accept legal
| | responsibility for the
| | contents of this message.
| | If you are not the intended recipient and have received this
| | message in
| | error, Please notify Synergy Logistics Limited immediately.
| |
| | Synergy Logistics Ltd. 01509 232706
| |
| | XSL-List info and archive:
| http://www.mulberrytech.com/xsl/xsl-list
| |
|
| XSL-List info
| and archive: http://www.mulberrytech.com/xsl/xsl-list
|
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
---------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.
Any views or opinions presented in this Email message are solely those
of the author and do not necessarily represent those of Synergy
Logistics Limited unless specifically stated.
Email communications are not necessarily secure and therefore
Synergy Logistics Limited does not accept legal responsibility for the
contents of this message.
If you are not the intended recipient and have received this message in
error, Please notify Synergy Logistics Limited immediately.
Synergy Logistics Ltd. 01509 232706
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list