Re: [xsl] Looping through attributes

Subject: Re: [xsl] Looping through attributes
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 21 Aug 2002 17:08:47 +0100
Hi Jody,

> Is it possible to loop through attributes in a simmilar way
> one loops through elements (<xsl:for-each select="expt">) ?

Yes. Just select the attributes rather than the elements. For example:

  <xsl:for-each select="@*">
    ...
  </xsl:for-each>

iterates over all the attributes on the current node.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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


Current Thread