<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html><body>
<table border="1">
<tr bgcolor="blue">
<th>First Name</th><th>Last Name</th><th>Age</th>
</tr>
<xsl:for-each select="persons/person">
<tr>
<td><xsl:value-of select="first-name"/></td>
<td><xsl:value-of select="last-name"/></td>
<td><xsl:value-of select="age"/></td>
</tr>
</xsl:for-each>
</table>
</body></html>
</xsl:template>
</xsl:stylesheet>
Dear All,
PFA the XSL document.
Thanks and Regards,
Vivek Mehta
Sunday, 11 December 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment