two child elements with the same tag name

admin

Administrator
Staff member
hi,
got a problem displaying something approx like this
its a movie list displayed as a table with info about each movie...one of these infos is an actor list, that i want to display...well as a list...hmmm...problem:

<movies>
<action>
<item id="1">
<actorList>
<actor>Bruce Lee</actor>
<actor>Angelina Jolie</actor>
</actorList>
</item>
</action>
</movies>

this seem to be legal, since the IE xml parser doesn complain, but i dont know how to access this with XSL...i struggled to have one of the actor names appear.
i used a for-each loop, and try to display the value of each actor with <xsl:value-of select="actor">

<ul>
<xsl:for-each select="actorList/actor">
<li><xsl:value-of select="actor"></li>
</xsl:for-each>
</ul>

when i play a bit with the path....nuttin appears

thx in advance
 
Top