xsl-list
[Top] [All Lists]

Re: [xsl] current() - referring to top in nested predicates

2008-08-06 06:03:22
   <xsl:apply-templates select="
     //T [ position() != last() ]
         [ count( $b[.  >=  current() and
                     . &lt; current()/following-sibling::T[1]]) > 0]"/>

You don't need to use count() > 0 to check for existence... just do:

//T [ position() != last() ]
  [$b[.  >=  current() and . &lt; current()/following-sibling::T[1]]]



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

--~------------------------------------------------------------------
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>
--~--