| 
 
Subject: Re: [xsl] testing for position of an element and displaying it  accordingly From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 19 Jan 2007 16:47:16 +0100  | 
Cheers, -- Abel Braaksma
<xsl:template match="r1"> <!-- The mode is applid for any <a> element that appears before the <b> element in the xml--> <xsl:if test child::a> <xsl:apply-templates select="a" mode="test"/> </xsl:if> <ol> <li type="1"> <xls:applly-templates/> </li> </ol> </xsl:template>
So, r1 is formatted with number 1.
<xsl:template match="a" mode="test"> <xsl:apply-templates mode="test"/> </xsl:template>
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] testing for position of a, ms | Thread | RE: [xsl] testing for position of a, Michael Kay | 
| Re: [xsl] testing for position of a, David Carlisle | Date | RE: [xsl] testing for position of a, Michael Kay | 
| Month |