XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 12th, 2003, 04:09 PM
sunkab sunkab is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 2 sunkab User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old December 13th, 2003, 01:14 PM
teedee teedee is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 42 teedee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > xsl looping problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway