|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
xsl looping problem
i have a xml which has data in blocks(diff elements seperated only by attribute). I have take one value from each block and put them together in a seperate block.The xml looks like
<input> <input.voltage counter="0"> <value>1</value> </input.voltage> <input.voltage counter="1"> <value>2</value> </input.voltage> <input.voltage counter="2"> <value>3</value> </input.voltage> </input> <output> <output.voltage counter="0"> <value>4</value> </output.voltage> <output.voltage counter="1"> <value>5</value> </output.voltage> <output.voltage counter="2"> <value>6</value> </output.voltage> </output> i am looking for a output in this format: <DataArray> <DataCell>1</DataCell> <DataCell>4</DataCell> </DataArray> <DataArray> <DataCell>2</DataCell> <DataCell>5</DataCell> </DataArray> <DataArray> <DataCell>3</DataCell> <DataCell>6</DataCell> </DataArray> Any help , pointers will be appreciated thanks sunkab |
|
#2
|
|||
|
|||
|
You need to use XSL - if you search the net you'll probably find some sites that mention it. Or you could just keep checking this thread until some kind person does your job for you.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > xsl looping problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|