This is like a "spot the differences" competition in a child's picture-book. You need to explain the rules that drive the transformation. Why is the drilldown property omitted when it's part of "Client IP" but not when it's part of "Instance", for example? Unless you know the rules, I could just write a stylesheet that generates the output regardless what the input is.
You also need to explain where you are having difficulty with your XSLT coding. It doesn't look like a difficult problem, so to help you, I need to understand which part of the language you are having difficulty with.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference