[Bug 4644] Allow assertions on local elements and types

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





------- Comment #6 from sandygao@ca.ibm.com  2007-12-13 17:43 -------
Copying my comments made in email...

Most changes mentioned in comment #5 look good. 2 additional comments:

1. "5.3.2 Schema Validity Rules"

Bullet 1 is implied by bullet 2:

"2. The value of {rules} for a local element declaration MUST be the empty
set."

2. How much do we need to say in "instance validity rules" sections

In most case, we just say "the instance MUST satisfy ...", without mentioning
"report violation" or "invalid". But bullet 4 of 5.3.3 has:

"If an assert or report is violated, then the violation MUST be reported during
model validation together with the specified message. The model MUST be
declared invalid when this happens."

It is better to treat all constraints consistently. Maybe
a. Recast the sentence to follow the "instance MUST" pattern, and
b. Have "invalid" etc. only in the conformance section.

Received on Thursday, 13 December 2007 17:43:41 UTC