xsl-list
[Top] [All Lists]

RE: String manipulation in XSLT

2005-10-20 09:11:55
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
<Prev in Thread] Current Thread [Next in Thread>