View Single Post
 
Old March 8th, 2005, 09:03 AM
mdawoodk mdawoodk is offline
Registered User
 
Join Date: Mar 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First of all thanks for your support i implemented your idea and am getting the following error.
"Top level elements should have non-null namespace, html."
i want to create a table with the tag names. my code is below.

<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" omit-xml-declaration="yes" />

<html>
    <body>
    <xsl:template match="/mags">
        <xsl:apply-templates select="mag/*"/>
    </xsl:template>

    <table width="80%" border="1">
    <tr bgcolor="lightgrey">
        <xsl:template match="mag/*">
            <td>
            <xsl:value-of select="name()"/>
            </td>
        </xsl:template>
    </tr>
    </table>
    </body>
</html>

</xsl:transform>