This is the mail archive of the xsl-list@mulberrytech.com mailing list .


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

Re: xsl:number question


Thank you, the problem was in the <xsl:strip-space/> which I accidently 
omitted when copying part of an existing file. I then got side tracked 
trying to fix the problem and lost the plot. I wanted to achieve a three 
column output and I got it now. In a previous question on multiple column 
output it was mentioned that is in the FAQs somewhere but I couldn't find 
it, so here is the code, it can easily be adjusted to any number of columns 
by changing the '3' in 'mod 3 = 1'.

<xsl:template select="form[position() mod 3 = 1">
<xsl:variable name="formPosition" select="position()"/>
<tr>
<td><xsl:value-of select="./orgcode"/></td>
<td><xsl:value-of select="//form[postion() = $formPosition + 
1]/@orgcode"/></td>
<td><xsl:value-of select="//form[postion() = $formPosition + 
2]/@orgcode"/></td>
</tr>
</template>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

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