Topic
  • No replies
leodesan
leodesan
1 Post

Pinned topic XML XSLT unordered list issue

‏2011-12-06T22:51:17Z |
I have following type of xml data:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited by XMLSpy® -->
<catalog>
<Employee>
<Name>

  • John
  • Miller
</Name>
</Employee>
<Employee>
<Name>
  • Mike
  • Powell
</Name>
</Employee>
</catalog>
Also, I have XSLT file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited by XMLSpy® -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>

Employee List

<table border="1">
<tr bgcolor="#9acd32">

<th>Person Name</th>
</tr>
  • <xsl:for-each select="catalog/Employee/Name">
    <tr>
    <td>
  • <xsl:value-of select="." />
  • </td>
    </tr>
    </xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
I am getting output in table like this:
  • John Miller

Though, the desired output is:
*John
*Miller
Can you please provide any pointer to correct my above code and get the desired output.