This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Looping through attributes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]