[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: Tue, 8 Jan 2002 21:20:25 GMT
xsl regular expressions explorer
> I assumed you'd nicked the idea from Omnimark or somewhere 
wel some of its in some bits of omnimark but the processing model is so
different there (you have access to start and end tags as strings, if
you want and variables have this strange property of being updatable:-)

So mainly I just made it up as I typed it into the two email

> So priority would be a real issue, in case there were overlapping
> matches. 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.

> Hmm... I think that both would be confusing, given that normal
> template match attributes aren't expressions or AVTs.

well they are effectively a restricted form of node-valued expression.
One could argue that the regexp ought to be a restricted type of string
valued expression. (Or alternatively, more javascripty perhaps one
should have regexp objects distinct from strings...)

> If patterns and data type tests could be unified...
hmm, of course a schema language that types its elements with xpath
patterns rather than schema complex types might look more schematron-y
than xml schema-like, but I know what you mean..

I think you may have a point about matching on types though, brings
xsl:for-each back up to par with xquery flwr and typeswitch.


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.