Re: Re: Function memoization

Colin Paul Adams <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
>>>>> "Dimitre" == Dimitre Novatchev <[email protected]> writes:

    Dimitre> I guess you and Colin are referring to "functions" that
    Dimitre> return newly-created nodes...

Clearly such a function cannot be successfully memoized.

    Dimitre> Let's put this straight in the specification and say that
    Dimitre> this is a "feature" of XSLT 2.0 of which developers/users
    Dimitre> must be warned and aware.

That seems reasonable.
We declare it an error to call the memoization instruction for such
functions, but do not require implementations to report the error, as
they may not be able to detect it.
-- 
Colin Adams
Preston Lancashire
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.