Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml document rendering problem

Status
Not open for further replies.

xsl

Programmer
Sep 6, 2001
1
0
0
IN
Hi,
I have created a valid and well formed xml document using attributes for the elements. I want those attribute values to be displayed in the output. For that I have used xsl document. But, the attribute values are not being extracted and rendered, the xsl instructions are being rendered instead. Please help me out.

Thanks. :)
 
<xsl:stylesheet xmlns:xsl=&quot; <xsl:template match=&quot;/&quot;>
<xsl:for-each select=&quot;root/Whatever&quot;>
<TR><TD><xsl:value-of select=&quot;@AttributeName&quot;/></TD></TR>
</xsl:for-each>
</TABLE>
</xsl:template>
<xsl:template match=&quot;text()&quot;><xsl:value-of /></xsl:template>
</xsl:stylesheet>
try this ... hope this helps.
cheers
D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top