Re: position()

Subject: Re: position()
From: John Robert Gardner <John.Robert.Gardner@xxxxxxxxxxxx>
Date: Thu, 10 Aug 2000 16:03:58 -0400
Offhand, I'd say the problem is b/c position() does not take any arguments.
Try 

	xsl:if test="b[position() = last()]"

if you're testing for b being last.  last() does not take arguments either.

><xsl:template match="a/b">
><xsl:if test="position(..)=last(../../a)">&nbsp;&nbsp;&nbsp;&nbsp;
></xsl:if>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
John Robert Gardner, Ph.D.
Enterprise Management Architecture
Sun Microsystems
Burlington, MA 01803
<remote />


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • position()
    • Steve Carton - Thu, 10 Aug 2000 15:12:26 -0400
      • <Possible follow-ups>
      • John Robert Gardner - Thu, 10 Aug 2000 16:03:58 -0400 <=
      • Kay Michael - Fri, 11 Aug 2000 09:01:04 +0100