Project

General

Profile

1
<?xml version="1.0"?> 
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3

    
4
  <xsl:template match="/">
5
       <table border="1" cellpadding="5">
6
         <tr><td><B>Element Name</B></td><td><B>Value</B></td></tr> 
7
        <xsl:apply-templates />   
8
      </table>
9
  </xsl:template>
10

    
11
  <xsl:template match="*">
12
    <xsl:for-each select="./*">
13
        <tr><td><xsl:value-of select="local-name()"/></td>
14
            <td><xsl:value-of select="."/></td></tr>
15
    </xsl:for-each>
16
  </xsl:template>
17

    
18
</xsl:stylesheet>
(8-8/17)