xsl-list
[Top] [All Lists]

RE: [xsl] Grouping elements using XSLT

2006-06-21 09:53:16
At 04:53 PM 6/20/2006, it was written:
SORRY, that was wrong. Following-sibling selects ALL nodes that follow, so
you want select="following-sibling[1]"

This will select the first child element named "following-sibling".

The XPath is an abbreviation for "child::following-sibling[1]". Since no axis specifier is given explicitly, child:: is assumed.

I think you meant "following-sibling::*[1]" or "following-sibling::LastName[1]". (In other words, Mukul's solution is correct.)

Cheers,
Wendell


--~------------------------------------------------------------------
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>