Re: References in XPath that can be representedbyastringandstill can be garbage collected
"Vladimir Nesterovsky" <[email protected]> Mon, 22 Dec 2008 13:12:34 +0200
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
>> > rules for the order of evaluation of expressions - all expressions. >> >> Not all expressions. >> The rules are the same as for expressions deriving their >> values from node identity. > > I don't think so. For node identity, there is no issue with order of > evaluation, the only constraint is some strictness about evaluating an > expression the right number of times. I think these are very close issues: for $i in (1 to 10), $v in f:function-depending-on-node-id() return ($i, $v) You cannot rewrite foregoing like: for $v in f:function-depending-on-node-id(), $i in (1 to 10) return ($i, $v) as when you change the order, the function will be called different number of times. -- Vladimir Nesterovsky http://www.nesterovsky-bros.com