[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: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 9 Jan 2002 22:58:15 GMT
xpath attribute regular expression

If I understand your syntax it wasn't so far from the syntax and
functionality of the sketch I made earlier. Nice to know I'm not
completely mad (or at least not alone:-)

I agree if your regexps are matching html with lots of < in them
the quoting in attributes can be a pain (see parallel thread on <<)
but in the xslt context at least, probably it should be in an attribute
anyway. As Xpath gets more power, and so xpaths get longer there may at
some point be a general requirement to offer an element content
alternative to xpath match and select attributes so that " and ' don't
need to be quoted at all and cdata can be used in place of &lt;s if
desired, but that seems to be a general xpath issue (in an xslt context,
if not for your tool) rather than something specific to regexps.

having implemented the beast, do you have insights into the trickier
questions that I managed to duck so far by denying all knowledge of my
own suggestion?  

In particular how do multiple matches work?
is one match/replace happening at a time in the order of your
call-matcher elements or are they being searched concurrently with some
priority rules saying which happens in the case of overlaps?

If your first call-matcher replaces some bit of the input string by
some tree fragment of  interspersed text and elements  (and
text contained within elements) then does the second call-matcher just
match on the remaining parts of the original string or does it also get
to work on the text in the tree structre that's being built by the
earlier matches?


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.

 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.