Subject: RE: [xsl] is there a generic way to iterate through all attributes of a tag. From: "Kimberly Hahn" <Kimberly.Hahn@xxxxxxxxxx> Date: Mon, 5 Aug 2002 16:38:45 -0500 |
You can use @* or attribute::* ex. <xsl:for-each select="@*"> will loop through all the attributes of the current node. for what you sound like you are doing, it may be better to call a template to process attributes - <xsl:template match="*"> tag: <xsl:value-of select="name()"/> <xsl:apply-templates select="@*"/> value: <xsl:value-of select="."/> </xsl:template> <xsl:template match="@*"> attribute: <xsl:value-of select="name()"/> </xsl:template> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] is there a generic way to ite, stardust@xxxxxxxxxx | Thread | [xsl] Urgent - Assigning <xsl:varia, Aparna Konduri |
RE: [xsl] need help explaining one , Matthew L. Avizinis | Date | RE: [xsl] Urgent - Assigning <xsl:v, Kimberly Hahn |
Month |