Re: [xsl] selecting following attribute

Subject: Re: [xsl] selecting following attribute
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 17 Sep 2010 17:06:36 +0100
On 17/09/2010 17:02, Terry Ofner wrote:
<xsl:value-of select="following::*[1]/@startNum


that says take the next element and then take its startNum attribute, so if the next element hasn't got such an attribute you get nothing.
you want the startNum attribute of the next element that has one


<xsl:value-of select="following::*[@startNum][1]/@startNum

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________


Current Thread