Raffaele / Andreas I think the preferred way (ie. processor independant) is to use either the recursive loop concept or the Xpath pos() function given in previous replies. reply.
Derek >>> [EMAIL PROTECTED] 2004/11/22 11:38:53 AM >>> Hi Andreas I you wish to set a new value to a <xsl:variable/> saxon may have the extensions you are looking for. Saxon offers something like <xsl:variable name="posX" saxon:assignable="yes"/>. Such a variable can than be reset with <saxon:assign name="posX" select="$posX + 1"/>. I am using saxonb-8.1.1. HTH Raffaele > -----Urspr�ngliche Nachricht----- > Von: Andres Taborda [mailto:[EMAIL PROTECTED] > Gesendet: Sonntag, 21. November 2004 03:44 > An: [EMAIL PROTECTED] > Betreff: question on xsl > > > hello list, > > excuse me by the following question > > progamming in any language a value auto-increment is > for ($i=1;$i<6;$i++) > $i+=1; > > in xsl how can make the auto-increment. > > I have the follow code, not make sum and > auto-increment > > <!--value initial --> > <xsl:variable name="posX">1</xsl:variable> > > <!-- this cicle have 5 element--> > <xsl:for-each select="child::*"> > <xsl:variable name="posX"> > <xsl:value-of select="$posX + 1"/> > </xsl:variable> > </xsl:for-each> > > > the output should be > 1 > 2 > 3 > 4 > 5 > 6 > > the ouput what display is > 1 > 1 > 1 > 1 > 1 > > some know how make it? > > thanks > > _________________________________________________________ > Do You Yahoo!? > Informaci�n de Estados Unidos y Am�rica Latina, en Yahoo! Noticias. > Vis�tanos en http://noticias.espanol.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
