[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|