Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 19th, 2007, 07:58 AM
Registered User
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help in making a FLAT xml to a structured xml


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

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

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

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

Any help is appreciated,

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

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