Subject: Re: 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 |
- SelectSingle Node
- Karl Stubsjoen - Wed, 21 Aug 2002 10:54:13 -0400 (EDT)
- jody - Wed, 21 Aug 2002 11:17:50 -0400 (EDT)
- jody - Wed, 21 Aug 2002 11:21:35 -0400 (EDT)
- Jeni Tennison - Wed, 21 Aug 2002 12:07:52 -0400 (EDT) <=
|
|