W3C home > Mailing lists > Public > www-xml-query-comments@w3.org > January 2002

Re: Regular expression functions (Was: Re: [xsl] comments on December F&O draft)

From: <naha@ai.mit.edu>
Date: Mon, 07 Jan 2002 16:05:28 -0500 (EST)
To: xsl-list@lists.mulberrytech.com, David Carlisle <davidc@nag.co.uk>
Message-ID: <1010437528.3c3a0d9870e60@alpha-bits>
Cc: www-xml-query-comments@w3.org, Jeni Tennison <jeni@jenitennison.com>
Quoting David Carlisle <davidc@nag.co.uk>:
[...]
> Looking at why one needs regexp in an XML query language, it is usually
> to infer structure into otherwise unstructured (by XML) input.

In general regular expressions are not sufficiently powerful for this,
being one level too low in the Chomsky hierarchy.

I'm not saying that regular expressions arn't useful in many cases, 
merely that they are not sufficiently powerful to describe how to 
transform (i.e. parse) a piece of text into a tree.

[...]
Received on Monday, 7 January 2002 16:05:32 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Monday, 13 June 2005 12:46:34 GMT