[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:number question

Subject: Re: xsl:number question
From: "Perry Molendijk" <p_molendijk@xxxxxxxxxxx>
Date: Sat, 13 May 2000 10:15:12 PDT
xsl number usage
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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.