[Bug 4526] [UPD] Sections 2.4.*: Target should allow empty sequence

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4526





------- Comment #1 from jonathan.robie@redhat.com  2007-05-08 17:20 -------
I don't like the idea of changing this in the dynamic semantics. If a user
attempts to add a new child to an existing element that does not exist, I think
the user should be made aware of the error - ignoring this silently will make
it harder to find bugs.

In the static semantics, I'm somewhat sympathetic, but I can also live with the
status quo. I think XQuery's static semantics currently require users to do
more work than they should for cardinality constraints, and implementations
have often decided to relax these constraints. In keeping with what many people
are currently implementing, I think relaxing this statically makes sense - but
to *, not to ?. On the other hand, it might be better to have consistency now,
and review the usability of the static semantics of the language as a whole in
vNext.

Received on Tuesday, 8 May 2007 17:20:36 UTC