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] |
> if the parent is an <LG> which has first position among its > siblings, then do X, otherwise do Y Try test="parent::lg[not(preceding-sibling::*)]" > > Here's what I thought would be the expression to accomplish that: > > <xsl:when test="parent::lg[position()=1]"> This looks at its position among all the parent::lg elements of the current node Mike Kay 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] |