xsl-list
[Top] [All Lists]

Re: First Element in Sorted List

2005-06-01 07:52:39
  My process needs to take action on the first element in a list of 
  elements where the logic to determine first is the lowest numeric value 
  of the sortorder attribute.  I don't believe there is a one-line way to 
  do this

select="item[not(@sortorder > following-sibling::item/@sortorder)][1]"

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>