xsl-list
[Top] [All Lists]

find capital letters in string and split it

2003-02-10 03:52:53


In Rdf/Xml it's often the habit to camel-case strings in IDs and such. 

Let's suppose I want to split the string at the upper case letters, the
easiest way I can see to do that (the only way that pops into my mind)
is to parse the string twice, using translate() and replacing upper-case
letters with a string sequence not very likely to occur normally, and
then reparse the string splitting it at these occurrences. This is of
course resource intensive and not foolproof. Anybody have any thoughts
on how to do this?



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list