narmi2
asked on
Top 1 row with XSL
Hi,
I have the following XSL code, but how do I only display the top row and not display the rest?
I have the following XSL code, but how do I only display the top row and not display the rest?
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:atom='http://www.w3.org/2005/Atom' exclude-result-prefixes="atom" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>heading here</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th align="left">Title</th>
<th align="left">Summary</th>
<th align="left">content</th>
</tr>
<xsl:apply-templates select="atom:feed/atom:entry"/>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="atom:entry">
<tr>
<td><xsl:value-of select="atom:title"/></td>
<td><xsl:value-of select="atom:summary"/></td>
<td><xsl:value-of select="atom:content"/></td>
</tr>
</xsl:template>
</xsl:stylesheet>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.