[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Sorting substitution instructions by max. length o
David Carlisle wrote:
I'd probably use analyze-string rather than using an explicit recursion to do the lookup.
(I think in both cases they may fail to find the longest match possible, as earlier matches may obscure a possible later longer match) You are definitely right that I have to face this issue which I admittedly failed to notice, and that this problem is common to both approaches. Can you think of an example of an input text and a regex with matches that would overlap in this way? (Each regex's matches will be checked in a pass of its own, so it must be matches of the same regex.) I tried but could not find an example within some time. Yves
|
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
|