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

Re: Spam: RE: String manipulation in XSLT

Subject: Re: Spam: RE: String manipulation in XSLT
From: JBryant@xxxxxxxxx
Date: Thu, 20 Oct 2005 12:26:04 -0500
spam re
It seems to be a common misconception that people think XSLT is about 
manipulating text. It is about manipulating XML, which is a structured way 
of storing information.

XSLT 1 doesn't have much support for string manipulation, because XSLT 1 
is really about manipulating XML and no one perceived much need for string 
manipulation. XSLT 2 has far greater string manipulation ability because 
it became apparent that those features were useful to a lot of people.

If there's any way you can move to XSLT 2.0, some of your frustration 
might go away (of course, you might be frustrated in new ways, too).

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)





"Arun Manta" <arunm@xxxxxxxxxxxxxx> 
10/20/2005 11:11 AM
Please respond to
xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To
<xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
cc

Subject
Spam: RE: String manipulation in XSLT






I have a string of the form ?abc.def.ghi? (java namespace ) where 
?abc.def? is the package name and ?ghi? is the class name.
I need to extract these two from the complete string : ?abc.def.ghi?  
-------? ?abc.def?  + ?ghi?

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.. 
)??

I?m constantly frustrated by trying to write little templates to do these 
simple things like splitting a string etc.

TIA

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.