How to show the value of an attribute?

Subject: How to show the value of an attribute?
From: Mario Christ <mario.christ@xxxxxxxxxxxxxxx>
Date: Tue, 09 Mar 1999 12:08:22 +0100
Hi,

making XML data visible in an HTML table is seems to be easy, I just do
(after creating a table and a row) the following:

        <xsl:template match="/positions/position/description">
                <TD ALIGN="RIGHT" VALIGN="CENTER">
                  <xsl:value-of />
                </TD>
        </xsl:template>

However, I wonder how it is possible to put the value of an attribute
(example:     <key name="masterkey">k543 z54</key>) in this tablecolumn
(in this case: "masterkey", and not the value "k543 z54".

Can anybody help?

Another question: What is the <DIV> tag for?

Thank you in advance...

Mario, Berlin





 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread