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

Re: RE: String manipulation in XSLT

Subject: Re: RE: String manipulation in XSLT
From: "Roger Chi" <roger.xslt@xxxxxxxxxxxx>
Date: Thu, 20 Oct 2005 12:40:13 -0400
xsl string manipulation substring
substring-after(substring-after(str,'.'),'.') = 'ghi'
= 'abc.def'

The second line fails if the last term is not unique, however.

I guess you could do:

- 1)

On 10/20/2005, "Arun Manta" <arunm@xxxxxxxxxxxxxx> wrote:

>I have a string of the form babc.def.ghib (java namespace ) where
babc.defb is the package name and bghib is the class name.
>I need to extract these two from the complete string : babc.def.ghibB
-------b babc.defbB  + bghib
>In java this would take about 1-2 lines of code, but in XSLT I cannot figure
out a way to do it without writing tons of code.
>Why is the support for string manipulation and regular expressions
non-existent in XSLT, when XML is all about text ( more than java etc.. )??
>Ibm constantly frustrated by trying to write little templates to do these
simple things like splitting a string etc.

Current Thread


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.
First Name
Last Name
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.