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

Re: Processing two documents, which order?

Subject: Re: Processing two documents, which order?
From: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Fri, 8 Apr 2011 12:21:36 +0100
Re:  Processing two documents
On Fri, 08 Apr 2011 11:47:18 +0100
David Carlisle <davidc@xxxxxxxxx> wrote:

> On 08/04/2011 11:11, Dave Pawson wrote:
> > I really couldn't contemplate writing such a regex to be honest
> > David.
> 
> if you have a whitespace list of words then the regex is
> string-join(tokenize($list,'\s+'),'|')
> is that so hard to contemplate?
> or you could, as Wolfgang just commented, try to give the regex
> engine a helping hand by pre-optimizing that regex by pulling out
> common prefixes.
> 
> David

With Wolfgangs notes, I'm struggling with the regex for one.

  <xsl:analyze-string select="."
  regex="[^a-z]({$property})[\s.,&#x22;,&#x27;&lt;$]">

Is currently missing >keyword ....
and
... keyword<....

Since checking for frisbee (where bee is the keyword)
causes >bee .... to be missed.

Ditto with the termination? I'm 'requiring' 
a termination, hence missing bee</element

How to add ^ and $ to the start and termination classes?

regards

-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

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.