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

RE: Splitting string

Subject: RE: Splitting string
From: "Wolpert, Jake" <JWolpert@xxxxxxxxxxx>
Date: Mon, 2 Aug 2004 14:52:25 -0700
jake wolpert
In xsl2 this works fine.

        <xsl:variable name="tokens" select="tokenize($fn,'/')" />
        <output>
                <xsl:for-each select="1 to count($tokens)">
                        <line>
                                <xsl:value-of
select="string-join(subsequence($tokens,1,.),'/')" />
                        </line>
                </xsl:for-each>
        </output>




-----Original Message-----
From: Rui Alberto L." Gongalves [mailto:rui-l-goncalves@xxxxxxxxxxxxx]
Sent: Monday, August 02, 2004 2:20 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Splitting string


Hi all,
I have a string like:
/this/is/a/test

and I need to create a template that will output:
/this
/this/is
/this/is/a
/this/is/a/test

I think this is not so simple as it looks at first glance.
Does anyone have an idea how to solve this problem?
Thanks for any help.

Rui
--
Rui Alberto L. Gongalves <rui-l-goncalves@xxxxxxxxxxxxx>
PT Inovagco

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.