[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: DOCBOOK-APPS: NEVER MIND! - XSLT question - referencing one node andthe one after it
Never mind... writing it down here inspired another clue that did
in fact work. The new section is:
> <xsl:for-each select="item">
<xsl:variable name="count" select="position()"/>
> <xsl:choose>
> <xsl:when test="(position() mod 2)=1">
> <row>
> <xsl:apply-templates select="."/>
<xsl:apply-templates select="../item[$count+1]"/>
> </row>
> </xsl:when>
> <xsl:otherwise>
> </xsl:otherwise>
> </xsl:choose>
> </xsl:for-each>
I actually converted the <xsl:choose> to an <xsl:if> and all
works perfectly fine.
Regards,
Dan
--
Dan York, Director of Training dyork@e-smith.com
Ph: +1-613-751-4401 Cell: +1-613-263-4312 Fax: +1-613-564-7739
Mitel Network Corporation Network Server Solutions Group
150 Metcalfe St., Suite 1500, Ottawa,ON K2P 1P1 Canada
http://www.e-smith.com/ http://www.mitel.com/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC