|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 ~ |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Ahhh Help needed with parent - child nodes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|