Click here to Skip to main content
15,908,634 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: complex XML Serialization Pin
DavidNohejl14-May-05 9:50
DavidNohejl14-May-05 9:50 
GeneralRetriving Attributes Value from XML file Pin
ksanju100012-May-05 19:20
ksanju100012-May-05 19:20 
GeneralRe: Retriving Attributes Value from XML file Pin
Anonymous13-May-05 0:04
Anonymous13-May-05 0:04 
GeneralRe: Retriving Attributes Value from XML file Pin
Anonymous13-May-05 0:26
Anonymous13-May-05 0:26 
GeneralRe: Retriving Attributes Value from XML file Pin
Anonymous13-May-05 1:00
Anonymous13-May-05 1:00 
GeneralRe: Retriving Attributes Value from XML file Pin
Anonymous13-May-05 1:02
Anonymous13-May-05 1:02 
QuestionWhat I need to do.... Pin
Tridith12-May-05 7:54
Tridith12-May-05 7:54 
GeneralConverting flat records into hierarchial records. Pin
Maharishi Bhatia10-May-05 3:21
Maharishi Bhatia10-May-05 3:21 
I am new in XML and XSLT. I have got a problem where i have to convert flat records into hierarchial records.
I have an XML containing the following records
<Data>
<Record>
<Id>1</Id>
<Name>something1</Name>
<Level>0</Level>
</Record>
<Record>
<Id>2</Id>
<Name>something2</Name>
<Level>1</Level>
</Record>
<Record>
<Id>3</Id>
<Name>something3</Name>
<Level>1</Level>
</Record>
<Record>
<Id>4</Id>
<Name>something4</Name>
<Level>2</Level>
</Record>
<Record>
<Id>5</Id>
<Name>something5</Name>
<Level>0</Level>
</Record>
</Data>

Now this data has to be arranged in the following manner

<Data>
<Record Id="1" Name="something" Level="0">
<Record Id="2" Name="something2" Level="1"></Record>
<Record Id="3" Name="something3" Level="1">
<Record Id="4" Name="something4" Level="2">
</Record>
</Record>
</Record>

<Record Id="5" Name="something" Level="0">
</Record>
</Data>

the level will decide how much recursion dept will be there.

Can anyone please help me with the XSLT transformer for this problem.

Thanks

Maharishi

Nothing is Impossible. Even impossible spells "i m possible"
GeneralXML Pin
Member 19080777-May-05 21:38
Member 19080777-May-05 21:38 
GeneralRe: XML Pin
DavidNohejl8-May-05 0:47
DavidNohejl8-May-05 0:47 
GeneralFor-each loops Pin
Dwayner795-May-05 8:38
Dwayner795-May-05 8:38 
GeneralRe: For-each loops Pin
hp10811-May-05 3:26
hp10811-May-05 3:26 
Questionxml in asp.net? Pin
mijan2-May-05 15:49
mijan2-May-05 15:49 
AnswerRe: xml in asp.net? Pin
Christian Graus2-May-05 16:10
protectorChristian Graus2-May-05 16:10 
GeneralXMLHTTP and PROXY problem Pin
karanba1-May-05 8:11
karanba1-May-05 8:11 
Generalxml-rpc Pin
Ankush_12325-Apr-05 10:32
Ankush_12325-Apr-05 10:32 
Generalretrieving remote xml data with vb.net Pin
Coreo25-Apr-05 7:12
Coreo25-Apr-05 7:12 
GeneralRe: retrieving remote xml data with vb.net Pin
Anonymous11-May-05 22:38
Anonymous11-May-05 22:38 
GeneralDataset.GetXml() problem Pin
padvit22-Apr-05 2:39
padvit22-Apr-05 2:39 
GeneralRe: Dataset.GetXml() problem Pin
chfu72224-Mar-13 21:48
chfu72224-Mar-13 21:48 
GeneralDataset.GetXml() problem Pin
Anonymous22-Apr-05 2:37
Anonymous22-Apr-05 2:37 
GeneralRe: Dataset.GetXml() problem Pin
Anonymous11-May-05 22:30
Anonymous11-May-05 22:30 
GeneralRe: Dataset.GetXml() problem Pin
Gregory Nozik25-Sep-11 17:56
Gregory Nozik25-Sep-11 17:56 
QuestionAny XSLT editor...? Pin
anderslundsgard20-Apr-05 20:35
anderslundsgard20-Apr-05 20:35 
AnswerRe: Any XSLT editor...? Pin
Christian Graus2-May-05 16:11
protectorChristian Graus2-May-05 16:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.