Subject: RE: Testing position of parent From: Kay Michael <Michael.Kay@xxxxxxx> Date: Wed, 25 Oct 2000 17:02:48 +0100 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Testing position of parent, David Carlisle | Thread | RE: Testing position of parent, Paul Caton |
Re: Testing position of parent, Sebastian Rahtz | Date | RE: XSLT text output - better forma, Kay Michael |
Month |