[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Grouping elements using XSLT


Subject: RE: [xsl] Grouping elements using XSLT
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 21 Jun 2006 12:14:49 -0400

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


Current Thread
Keywords