Hi,
I am a beginner to XSL/XML. I may not be using proper terms in describing my question. Please excuse.
I have a XML file which looks like below -
Code:
<Emp>
<SSN>xxx-xx-xxxx</SSN>
<Name>ABC</Name>
<Phone>6507231234</Phone>
<Phone>6507553223</Phone>
</Emp>
<Emp>
<SSN>xxx-xx-xxxy</SSN>
<Name>BCD</Name>
<Phone>6507231235</Phone>
<Phone>6507553226</Phone>
</Emp>
I have written a XSL file to display the data in XML onto HTML. Part of the code looks like as shown below -
Code:
<table>
<tr>
<th>SSN</th>
<th>Name</th>
<th>Phone</th>
</tr>
<xsl:for-each select="Emp">
<tr>
<td><xsl:value-of select="SSN"/></td>
<td><xsl:value-of select="Name"/></td>
<td><xsl:value-of select="Phone"/></td>
</tr>
</xsl:for-each>
</table>
The above code displays just the first value of Phone. How should I modify the code to display the multiple values