Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 41105 invoked from network); 24 Oct 2000 10:35:24 -0000 Received: from f81.law4.hotmail.com (HELO hotmail.com) (216.33.149.81) by locus.apache.org with SMTP; 24 Oct 2000 10:35:24 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 24 Oct 2000 03:34:51 -0700 Received: from 148.88.0.10 by lw4fd.law4.hotmail.msn.com with HTTP; Tue, 24 Oct 2000 10:34:51 GMT X-Originating-IP: [148.88.0.10] From: "Robin Green" To: cocoon-users@xml.apache.org Subject: Re: problems counting in loops Date: Tue, 24 Oct 2000 11:34:51 BST Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 24 Oct 2000 10:34:51.0961 (UTC) FILETIME=[0AB0FA90:01C03DA6] X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Bas Passon wrote: >I have got a small problem, counting in xsl, see the following fragment of >code > > > > ...do something > > > >for some reason the count variable stays 1. What am i doing >wrong. I looked at the XPath docs, but this is a valid >expr. Yes, valid expression - but invalid assignment. Variables cannot be changed in XSLT - yes, I know it's a pain. To count things use the count() function - that's what it's there for! In future please ask XSL questions on the XSL list at www.mulberrytech.com or look at the FAQ there. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.