Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] How to access all attributes and their values ? [Thread Next] Re: [xsl] How to access all attributes and their values ?To: Date: 11/1/2004 10:11:00 PM Hi Matt, > <xsl:for-each select="\\elem[@]"> > Attribute name=<xsl:copy-of select="extractattrname(.)" /> > Attribute value=<xsl:copy-of select="extarcteattrvalue(.)" /> > </xsl:for-each> Translated into XSLT, this is: <xsl:for-each select="//elem/@*"> Attribute name=<xsl:value-of select="name(.)" /> Attribute value=<xsl:value-of select="." /> </xsl:for-each> Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
