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

RE: Regular expression functions (Was: Re: comments on

Subject: RE: Regular expression functions (Was: Re: comments on December F&O draft)
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 9 Jan 2002 11:40:08 -0000
RE: Regular expression functions (Was: Re:  comments on
> And the XML Schema regexp syntax would need to be
> amended so that it can match the start/end of strings.
> Yes. The latter is needed in anycase, fuly anchored regexp's
> make sense
> for schema validating content models of elements but are not
> really what
> you want for a general search/replace system.
Just for clarity: although the xf:match() function reuses the syntax and
semantics of regular expressions as defined in schema, the regexp is not
anchored in the case of xf:match(). This is because although schema
specifies that the regexp must match the whole string, xf:match() in effect
tests the regexp against every substring of the supplied string and returns
a list of those substrings that match. I guess this raises the question as
to whether we need an anchored match as well. I think that we've been trying
(perhaps a bit too hard) to avoid making any modification at all to the
regexp syntax and semantics defined in Schema.

I'm interested in your exploration of the use-cases for regexp matching and
possible XSLT constructs to support those use cases, though so far I've had
difficulty following the "make-it-up-as-you-go-along" style of

Mike Kay

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

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.