[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

<xsl:for-each> , only loop on half of the elements.

Subject: <xsl:for-each> , only loop on half of the elements.
From: Red Light <skydelta98@xxxxxxxxx>
Date: Mon, 26 Jul 2010 07:30:33 -0700 (PDT)
  <xsl:for-each>
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">
.
.
.
.
.
.
<xsl:for-each>

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 ?


PS:inside my <xsl:for-each> i print a table body that contain the data


and thanks 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.