- From: David Carlisle <davidc@nag.co.uk>
- Date: Mon, 7 Jan 2002 21:21:04 GMT
- To: naha@ai.mit.edu
- CC: xsl-list@lists.mulberrytech.com, www-xml-query-comments@w3.org, jeni@jenitennison.com
> 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. well yes that's true. You couldn't for example parse xml markup into an XML tree using rexexps. But the typical use case is rather less than that. You have an XML file but the markup stops at too course a level for some purpose, the character data of some element has some non xml structure, comma or space separated list perhaps (or as in my real example some words quoted with ' rather than with an element), that you want to process in the transform. Allowing regxep processing to access the full power of the element constructors (in xquery or xslt) would prove a lot more useful than "just" having a regexp string replace. David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service.
Received on Monday, 7 January 2002 16:21:27 UTC