[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Value of next node

Subject: RE: Value of next node
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 9 Jan 2002 10:08:48 -0000
next node in xsl
> 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.

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

Tests if the first following sibling element has an attribute called "name"
or a child element (of any name).

Mike Kay
>
> <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,
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.