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

Re: Conditional splitting of string with XSL

Subject: Re: Conditional splitting of string with XSL
From: Mukul <mukulw3@xxxxxxxxx>
Date: Sun, 26 Jan 2003 22:38:00 -0800 (PST)
code split string in xsl
Hi Dimitre,
Thanks for your reply. I have to use Apache Xalan &
Xerces parsers. Your program uses the syntax
xmlns:msxsl="urn:schemas-microsoft-com:xslt" . Would  
Microsoft specific namespace work with Apache XSLT
engine? Your source also imports a file
str-foldl.xsl.. Where can I find this file..?

Regards,
Mukul

--- Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:
> 
> "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() &lt; 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
> 


__________________________________________________
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

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.