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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old June 6th, 2003, 08:37 AM
Vmusic Vmusic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 85 Vmusic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 22 sec
Reputation Power: 8
Question Ahhh Help needed with parent - child nodes

Hi,
I have an XML document of songs I would like to display. The heirarchy is:
<artist>
<artist_nm>
<media> (This is like CD's or Albums)
<media_nm>
<song>
<song_nm>

OK... so I'm trying to dipslay data from an XML file with various artists, and each artists has various CD's or media, and each media will have various songs.

The first column in the table should be repeated if I display more than one song or media something like:

Artist | Media | Song
Billy Joel | 52nd Street | New York State of Mind
Billy Joel | 53nd Street | East Manhattan Blues

I can't figure out how to do this with XSL. I am doing a for-each loop, looping through each artist, then each media or CD, then each song. But the problem is when I get to the second media or second song, how do I display the artist_nm element which is way up in the parent node?

H E L P !!!!
__________________
~Just Say When ~

Reply With Quote
  #2  
Old June 6th, 2003, 09:37 AM
Vmusic Vmusic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 85 Vmusic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 22 sec
Reputation Power: 8
HELP - Clarification

Hi,
I'm sorry the formatting took away the hierarchy.


Artist (this is root)
-------> Media (under Artist)
------------------------->Song (under Media)

Please help, I'm certain someone has traversed a three node tree and need to store and replicate some element in the parent nodes

Thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Ahhh Help needed with parent - child nodes


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 5 hosted by Hostway