Re: Rowcount
Martin Honnen <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
Tomislav Bilic wrote:
> <xsl:for-each select="dataroot/portfolio">
> <div class="portfolio_element">
> <div class="no1">
You can simply use
<div class="no{position()}">
then for instance to achieve that result. Read up on attribute value
templates <http://www.w3.org/TR/xslt#attribute-value-templates>, on the
position function <http://www.w3.org/TR/xpath#function-position>.
Please note the XSLT problems specific to Mozilla should be asked here
but if you have general XSLT questions then there are better places to
ask, e.g. <http://www.mulberrytech.com/xsl/xsl-list/>
Consider checking the XSLT FAQ <http://www.dpawson.co.uk/xsl/index.html>
for solutions first.
--
Martin Honnen
http://JavaScript.FAQTs.com/