Subject: Re: [xsl] <xsl:for-each> , only loop on half of the elements. From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 26 Jul 2010 15:34:20 +0100 |
i have a pretty weird use case :
i have a node contained number of elements but late say i got 6 elements i only need to first 3.
<xsl:for-each select="/content/collaborator[position() <= (last() div 2)]"> .
i know that this kind of things should be treated in data source level
... , i'm using apache Fop to print my reports and i use the data that comes thru a webservices so can't modify it .. any way in my xsl to use only the NUMBER_OF_ELEMENT / 2 ?
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] <xsl:for-each> , only loop o, Red Light | Thread | Re: [xsl] <xsl:for-each> , only lo, Red Light |
[xsl] <xsl:for-each> , only loop o, Red Light | Date | Re: [xsl] <xsl:for-each> , only lo, Red Light |
Month |