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]

Re: Suggestion for XSLT 2.0


Hi,

> test="preceding-sibling::*[self::heading and position() = 1]"
> 
> It seems to me that this situation (I.e testing the type of an immediately
> neighbouring element) is fairly common and there should be some abbreviation
> for it for preceding, following, preceding-sibling and following-sibling.
> Anybody agree?, disagree?

I have to agree here. The current version really is far from being 
intuitive, not to talk about fast&easy writing ;)  I think Paul's
some(-1)/some(+1) etc. was a good suggestion.

Bye,

Heiner


 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]