Arrays and complex elements have a notion of being finalized, when unparsing.
This is when we know that no more elements will be added to them, so things
like fn:count can return a value knowing it won't change, and fn:exists can
return false, knowing nobody will subsequently append the item that was being
questioned.
Arrays and complex elements have a notion of being finalized, when unparsing. This is when we know that no more elements will be added to them, so things like fn:count can return a value knowing it won't change, and fn:exists can return false, knowing nobody will subsequently append the item that was being questioned.