|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Converting attributes into child elements
Hello All,
I need some help with a transformation. I would like to take an element
with multiple attributes and convert them so the attributes are now child
elements of the original element. See example.
<contactInfo>
<person fname="John" lname="Doe" address="123 Main Street"
city="Princeton"
zipcode="08800">
<person fname="John" lname="Doo" address="456 Main Street" city="Trenton"
zipcode="08801">
<person fname="John" lname="Doh" address="789 Main Street"
city="Jamesburg"
zipcode="08802">
</contactInfo>
Convert to
<contactInfo>
<person>
<fname>John</fname>
<lname>Doe</lname>
<address>123 Main Street</address>
<city>Princeton</city>
<zipcode>08800</zipcode>
</person>
<person>
<fname>John</fname>
<lname>Doo</lname>
<address>456 Main Street</address>
<city>Trenton</city>
<zipcode>08801</zipcode>
</person>
<person>
<fname>John</fname>
<lname>Doh</lname>
<address>789 Main Street</address>
<city>Jamesburg</city>
<zipcode>08802</zipcode>
</person>
</contactInfo>
Any direction would be greatly appreciated.
TIA,
Jeff Langdon
Web Programmer
LTA Group, Inc
Jamesburg, NJ 08831
---------------------------------------------
This message was sent using MI-Webmail.
No matter where you are, never lose touch.
Get your Email using MI-Webmail.
http://www.monmouth.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








