[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 08:17:15 +0100
Re:  Processing two documents
On Thu, 7 Apr 2011 14:52:23 -0700
Tony Nassar <tnassar@xxxxxxxxxxxx> wrote:

> Is there any reason to use a regex for *static* keywords from the
> shorter list? Wouldn't you simply hash that using xsl:key, then use
> the key() function to determine whether regex-group(1) is a key?

I need to avoid marking up the word followed by other content.
Hence the need to use regex

> Presumably you'd lower-case everything, etc. In fact, putting all the
> keywords in a regex is likely to work badly. I don't know if a regex
> engine is going to optimize an "or" with 300 words in it...it's
> probably going to assume that you wouldn't be using a regex to check
> for equality with 1 of 300 words!

Which is why I hadn't considered that approach.



Dave Pawson

Current Thread


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.
First Name
Last Name
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.