Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 19th, 2007, 07:58 AM
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help in making a FLAT xml to a structured xml

Hello,

I have a problem I didnt manage to solve, and I really need some help in:

I have a flat xml for properties:
Code:
<ROOT>
 <Prop Name="a.b.c" Val="1"/>
 <Prop Name="a.b.d" Val="2"/>
 <Prop Name="a.a.a" Val="3"/>
</ROOT>
I want to transform this into something like:
Code:
<ROOT>
 <PropGroup Name="a">

   <PropGroup Name="b">
    <Prop Name="c" Val="1"/>
    <Prop Name="d" Val="2"/>
   </PropGroup>

   <PropGroup Name="a">
    <Prop Name="a" Val="3"/>
   </PropGroup>

 </PropGroup>
</ROOT>
Any help is appreciated,
Thanks,
Shlomi
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tree xml to flat xml whiteadi XSLT 2 November 14th, 2006 02:36 PM
Converting XML to XML (making element mandatory) boondocksaint20 XSLT 8 April 28th, 2006 10:54 AM
creating a structured xml from an unstructured xml geoffgeoffgeoff XSLT 0 August 10th, 2005 02:58 PM
translating a flat xml to a hierarchical xml stevea XSLT 4 June 13th, 2005 05:55 PM
xml xslt css structured web site mlaba XSLT 0 September 17th, 2004 07:00 PM



All times are GMT -4. The time now is 08:46 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.