[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: lookaheads in XSLT2 regexes

Subject: Re: lookaheads in XSLT2 regexes
From: James Cummings <james+xsl@xxxxxxxxxxxxxxxxx>
Date: Mon, 1 Mar 2010 14:17:04 +0000
Re:  lookaheads in XSLT2 regexes
On Mon, Mar 1, 2010 at 12:11, David Carlisle <davidc@xxxxxxxxx> wrote:
> you should be able to get access to the feature using replace() I think.
> use replace with the nonstandard lookahead flag and a replace string which
> re-inserts the entire matched string, but with some unique marker such as
> @start@$0@end, then you can apply analyze-string to the resulting string
> without needing any lookahead markers as you can instead match the explicit
> @start@ and @end@ boundaries added in the first pass.

This was the kind of approach I was looking at, though admittedly I
was thinking of doing this to the input data as a whole before
processing.  It would be much more clever to do it in a variable
before processing though.

-James

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.