|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Using Tokenize with Lookbehind Regexp
There's no "(?" in the XPath 2.0 regex dialect, and I don't think there's
any way of doing what you want to do with a simple call on tokenize().
>
> I want to separate the string at each white-space if the
> string before is longer than 70 signs
>
You could try replace() followed by tokenize():
tokenize(replace(., '(.{70}.*)(\s+)', '$1|'), '|')
(where '|' is some character that's not used in your input)
(not tested)
Michael Kay
http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








