xsl-list
[Top] [All Lists]

Re: finding elements lowest in hierarchy?

2004-01-27 06:20:10

  does anyone know how to find out whether any of the lowest children in a 
  hierarchy have a particuler attribute??

lowest or lower?


<xsl:if test=".//*[(_at_)minimum]"> do something if any descendent has the 
attribute

<xsl:if test=".//*[not(*)][(_at_)minimum]"> do something if any leaf descendent 
has the attribute

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. 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