RE: Grouping elements using XSLT
SORRY, that was wrong. Following-sibling selects ALL nodes that follow, so you want select="following-sibling"
This will select the first child element named "following-sibling".
The XPath is an abbreviation for "child::following-sibling". Since no axis specifier is given explicitly, child:: is assumed.
I think you meant "following-sibling::*" or "following-sibling::LastName". (In other words, Mukul's solution is correct.)
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format