This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
NEVER MIND! - XSLT question - referencing one node andthe one after it
- To: docbook-apps at lists dot oasis-open dot org
- Subject: DOCBOOK-APPS: NEVER MIND! - XSLT question - referencing one node andthe one after it
- From: Dan York <dyork at e-smith dot com>
- Date: Mon, 10 Sep 2001 11:59:56 -0400
- List-Id: <docbook-apps.lists.oasis-open.org>
- Organization: e-smith, Inc.
- References: <20010910111426.D31553@e-smith.com>
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/
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>