Subject: Re: [xsl] FW: Linear counting problem in nested loop From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sun, 25 Jan 2004 08:51:10 -0500 |
Please try the following XSL template -
<xsl:template match="/MENU"> <xsl:for-each select=".//*"> <xsl:if test="text()"> <xsl:value-of select="position() div 2"/> for <xsl:value-of select="text()"/> </xsl:if> </xsl:for-each> </xsl:template>
-- Public courses: sign up for one or both soon to reserve your seat! Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22 Hong Kong, China: 2004-05-17 Bremen, Germany: 2004-05-24 World-wide on-site corporate, government & user group XML training
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] FW: Linear counting probl, Mukul Gandhi | Thread | Re: [xsl] FW: Linear counting probl, G. Ken Holman |
Re: [xsl] FW: Linear counting probl, G. Ken Holman | Date | RE: [xsl] Accessing data from repea, Michael Kay |
Month |