[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Scope of side effects in extension functions

Subject: Scope of side effects in extension functions
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 04 Aug 2005 22:13:18 +0100
side scope
>>>>> "Michael" == Michael Kay <mike@xxxxxxxxxxxx> writes:

    Michael> But that's all legalese. The practical point is that the
    Michael> extension function mechanism is there to enable vendors
    Michael> to provide extensions for the benefit of people who want
    Michael> the extra functionality and are prepared to pay the price
    Michael> in portability. So whatever the small print says, it's
    Michael> entirely within the intent of the spec.

OK.
I feel that a few words of caution could usefully be added to the
note in the spec, so that

There is no prohibition on calling extension functions that have
side-effects (for example, an extension function that writes data to a
file). However, the order of execution of XSLT instructions is not
defined in this specification, so the effects of such functions are
unpredictable. 

becomes something like:

There is no prohibition on calling extension functions that have
side-effects (for example, an extension function that writes data to a
file). However, the order of execution of XSLT instructions is not
defined in this specification, so the effects of such functions are
unpredictable, and may cause behaviour that is otherwise inconsistent
with the provisions of this document.

as I would certainly have not expected this to be the case, in the
light of:

    Michael> With extension attributes, the WG has pinned down quite
    Michael> carefully what they can and can't do.

-- 
Colin Adams
Preston Lancashire

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.