[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: Fri, 11 Jan 2002 15:10:42 GMT
Re: Regular expression functions (Was: Re:  comments on
> Is it realistic to expect implementations to guarantee to return the
> same thing for any given combination of arguments for a particular
> function?

Yes for built in xpath functions. they are all (so far) defined so that
is true. Probably not for externally defined extension functions but
the behaviour of any expression using such function really can't be
specified in Xpath. For example currently given a variable definition
and three references to it, a system is free to evaluate the variable
once and use that value three times, or just to re-evaluate the
expression each time, or something in between. Mike's given examples on
ths list before now of the heuristics saxon uses to decide which to do.

If a variable definition uses a function that isn't guaranteed to return
the same result if called with the same arguments then it is legal for
a reference, $x, to that variable to produce different answers if it
appears twice in the same scope. this is something you really want to


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.