Subject: Re: [xsl] Conditional splitting of string with XSL From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Sun, 26 Jan 2003 10:43:18 -0800 (PST) |
"Mukul" <mukulw3@xxxxxxxxx> wrote in message news:20030126165854.65085.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxx > Thanks for your reply. Is it possible that I can > output only first 3 lines? Since we cannot increment > variables in XSL, is there a solution to this problem. > > Will appreciate any help.. > > Regards, > Mukul In the solution, which is presented in: http://sources.redhat.com/ml/xsl-list/2001-12/msg00651.html replace the following code: <xsl:for-each select="msxsl:node-set($vResult)/line"> <xsl:for-each select="word"> <xsl:value-of select="concat(., ' ')"/> </xsl:for-each> <xsl:value-of select="' '"/> </xsl:for-each> with: <xsl:for-each select="msxsl:node-set($vResult)/line [position() < 4]"> <xsl:for-each select="word"> <xsl:value-of select="concat(., ' ')"/> </xsl:for-each> <xsl:value-of select="' '"/> </xsl:for-each> Hope this helped. ===== Cheers, Dimitre Novatchev. http://fxsl.sourceforge.net/ -- the home of FXSL __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Conditional splitting of , Dimitre Novatchev | Thread | Re: [xsl] Conditional splitting of , Mukul |
Re: [xsl] Conditional splitting of , Dimitre Novatchev | Date | [xsl] speed optimization, Tobias Reif |
Month |