need help using multiple element per parent element

wxdqz

New Member
I am trying to include multiple cast element per movie element in the xml file.

In the inline doctype the declaration is:
<!ELEMENT movie (title, rating, year, director, cast+)>
<!ELEMENT cast (#PCDATA)>

The code in xml is:
<movie>
<title>Dawn of the Dead</title>
<rating code = "R" />
<year>2004</year>
<director>Zack Snyder</director>
<cast>Ving Rhames-</cast>
<cast>Sarah Polley-</cast>
</movie>

The code I am using to display is from xsl file, which is:
<tr>
<td><b>Cast</b></td>
<td><xsl:value-of select = "cast" /></td>
</tr>

But it is only displaying the first cast element data, please let me know what I am doing wrong here.

This is my first xml class project, so right now I am just familiar to basic xml. Thanks for any help in advance.

Talal
 
Back
Top