Subject: RE: my nearest sibling From: Kay Michael <Michael.Kay@xxxxxxx> Date: Tue, 6 Jul 1999 18:42:16 +0100 |
> Any volunteers to express "go up and get my nearest older sibling"? > In this example: > > <list type="gloss"><label><gi>front</gi></label><item>contains any > prefatory matter (headers, title page, prefaces, dedications, etc.) > found before the start of a text proper.</item> > > when processing <item>, I want to get my paws on the associated > <label>. > <xsl:apply-templates select="from-preceding-siblings(label[1])"/> Or you could try: <xsl:variable name="here"><xsl:number count="*"/></xsl:variable> <xsl:apply-templates select="../*[$here - 1]"/> (Nearly forgot the space around the minus sign - memories of COBOL!) Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: my nearest sibling, David Carlisle | Thread | Passive TeX: using TeX to format XS, Sebastian Rahtz |
Re: Swapping table rows and columns, G. Ken Holman | Date | RE: my nearest sibling, Kay Michael |
Month |