On Wed, Jul 9, 2008 at 9:41 AM, Sjoerd Mullender
empty-sequence() doesn't seem to be the right return type for fn:put(). Pathfinder decides the validity of updating expressions slightly different than the W3C specs (and, in my eyes, much more consistent).
The thing is, fn:put() is *not* an updating expression. It is defined in the same document by the same committee, but not in the same section as the updating expressions.
Hi Sjoerd, I don't agree with this conclusion. fn:put() is defined in the same section (Section 2) as all the other update expressions. fn:put() has a side effect just as all the other update expressions. There's an additional Section 3 that describes the underlying primitives that implement the ones from Section 2. But this is unrelated to the issue. Jens -- Jens Teubner, jens.teubner@gmail.com