xsl-list
[Top] [All Lists]

Re: [xsl] To find out immediate following tag(S)

2008-10-06 08:29:13
The output you mentioned is desired output?? it doesn't seem to be
consistent showing what the requirement is...
if you want all the following siblings, you can simply use
following-sibling::*....

On Mon, Oct 6, 2008 at 5:43 PM, J. S. Rawat <jrawat(_at_)aptaracorp(_dot_)com> 
wrote:
Hi List you people has suggested that one can find out immediate following
TAG by following-sibling::*[1][self::a1].  Just to extend the topic, how we
will find out all the immediate siblings.

Input
<a>first</a>
<a1>second</a1>
<a1>third</a1>
<a>fourth
<a1>fifth</a1>
<b1>sixth</b1>
</a>
<a1>seven</a1>
<a1>eight</a1>
<a>nine</a>
<b1>ten</b1>
<a1>ele</a1>

OUTPUT
<a>first
second
third</a>
<a>fourth
<a1>fifth</a1>
<b1>sixth</b1>
seven
eight</a>
<a>nine</a>
<b1>ten</b1>
<a1>ele</a1>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





-- 
Thanks & Regards,
Mandar

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>