xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m_dieu <anmeldung.fo...@gmx.net>
Subject Re: Number of elements in Collection
Date Thu, 01 Nov 2007 14:50:31 GMT

Ok, seems like I found for what I'm looking for:

<xsl:variable name="whatever" select="Collection"/>
<xsl:value-of select="count($whatever)"/>

If I'm wrong just tell me!


m_dieu wrote:
> 
> Hi,
> 
> is there a possibility to count the number of elements in a collection
> before/while using <xsl:for-each select='collection'>?
> 
> Maybe I have to use 2 for-each loops and count the elements in the first
> one and do whatever I want in the second. But how can I count in XSLT?
> 
> Thanks in advance!
> 

-- 
View this message in context: http://www.nabble.com/Number-of-elements-in-Collection-tf4731820.html#a13530208
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message