This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

position()


I guess I don't understand the "position" function.  I am trying to see 
if the node I'm processing is the last one, but it never works:

<xsl:template match="a/b">
<xsl:if test="position(..)=last(../../a)">&nbsp;&nbsp;&nbsp;&nbsp;
</xsl:if>
xsl:apply-templates/> </xsl:template>
Any comments?
-----------------------www.retrievalsystems.com
Steve Carton                       703/749-0012
Retrieval Systems Corporation      703/749-0015
2071 Chain Bridge Road, Suite 510
Vienna, VA  22182      
    If it's 0 degrees today, and it's going to be twice as cold tomorrow, ...how cold will it be? 


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]