This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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/           

----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]