Re: [xsl] Value of next node

Subject: Re: [xsl] Value of next node
From: Joerg.Heinicke@xxxxxx
Date: Wed, 9 Jan 2002 02:56:30 +0100 (MET)
<xsl:value-of select="following-sibling::*[1]"/>

Does this help?

Or the check

<xsl:if test="following-sibling::*[1][@name or *]">.

Regards,

Joerg


> While  applying for-each or apply templates when i am on Node "ce1", I
> want 
> to check if in the next node "ce2" contains "name" attribute or
> sub-element, 
> or not. I cannot hardcode names "ce2". If there is something similar to
> "following-siblings" which only takes me to next node.
> 
> <root>
> 	<components>
> 		<ce1 name='a'>
> 			<name>Account View</name>
> 		</ce1>
> 		<ce2 name='b'>
> 			<src>abc.gif</src>
> 		</ce2>
> 		<ce3 name='b'>
> 			<src>abc.gif</src>
> 		</ce3>
> 	</components>
> </root>
> 
> Thanks and Regards,

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread