|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Testing position of parent
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








