xsl-list
[Top] [All Lists]

[xsl] Negative lookahead/behind in XSL regexp

2011-05-09 03:32:50
Hi,

I'm using regexp in XSL to process input text data into a selection of fixed 
values. This works for most of my requirements but I have one key word which I 
need to exclude if preceded by one word or followed by another. It appears that 
lookahead and lookbehind are not included in the XSL2.0 specification, so I'm 
looking for an alternative way of doing it.

The only way I've found so far involves lots of nested groups with negated 
character classes and is very messy with long words.

Anyone got a neat way of doing it?

Yours,

Clint Redwood 

Screwtape Limited, Registered 06663232, Babington House, 26 College Road, 
Chilwell, Nottingham NG9 4AS
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>