Bk Jacky wrote:Paul Clapham,
XSLT should output IPAddress only from the Input doc. It should create new element <IPAdress> for each IPAdress
We can group max three IP address under <Address> element.After that we have to create new <Address> element.
I think it will clear some picture....
A little more clear. But your original example had elements like <IP1> in the output. That wasn't mentioned in the requirements you just posted. The "IP1" wasn't anywhere in the input document. So I don't understand where that is supposed to come from. And the original example didn't actually have any <IPAdress> elements or any <IPAddress> elements for that matter. Or any <Address> elements -- which is it supposed to be, anyway? So your explanation doesn't explain anything about the example.
Let me also suggest that when you start trying to write this XSLT document you start by ignoring the requirement that you have to have multiple <Address> elements containing at most three, um, whatever it is child elements you're talking about. That's going to be hard to program. (And it's also a peculiar requirement -- I don't see any point in it.)
So I guess my summary is: Find out what the requirements are for this transformation. Get a real-life example that is actually an example of the requirements.