Subject: [xsl] position() and last() problem From: jfi@xxxxxxxxxxxxxxxx Date: Wed, 8 Jan 2003 16:43:24 +0100 |
Hi List, I´ve got a problem finding out whether a parent element is a "last()" one. I read the FAQ but it didn´t help. My XML file has the following structure: <views> <view> <stuff>...</stuff> </view> <view> <stuff>...</stuff> <view> <stuff>...</stuff> <view> <stuff>...</stuff> </view> <view> <stuff>...</stuff> </view> </view> <view> <stuff>...</stuff> </view> </view> </views> 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. I tried <xsl:if test="ancestor::con:view[1][position()]!=last()">, but understanding more and more of XSLT I know that can´t work. But I don´t know yet what can. All whitespace is stripped. Thanks for your help! Julia XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: RE: Antwort: [xsl] default imag, cknell | Thread | Re: [xsl] position() and last() pro, David Carlisle |
Re: [xsl] How do I create an FO ind, W. Eliot Kimber | Date | [xsl] Import and variables, Joeri Belis |
Month |