xsl-list
[Top] [All Lists]

RE: position() and last() problem

2003-01-08 11:28:41
That means each <view>-element can contain an undefined 
number of other <view>s. What I want to know is whether the 
parent of a <view> - if it is also the view - is the last one.

By "the last one" I assume you mean that it has no following siblings?

Then you want:

<xsl:if test="parent::view[not(following-sibling::view)]">

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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



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