Community
Participate
Working Groups
This is a spec compliance issue, now that the working group has consensus. From SML bug 5797's resolution: If a schema is bound to an instance document, we perform strict-wildcard validation. If a schema is not bound to an instance document, no schema validation is performed. There is further background, including definitions of those terms, in the SML bug.
(In reply to comment #0) > If a schema is not bound to an instance document, no schema > validation is performed. John, does this mean we shouldn't do any validation if there are no instance documents in the SML-IF file? Or do you mean no schema validation against the instance document, but there still should be validation of the schema document itself? Based on a conversation that Ali had with Sandy, it would seem that the latter is the case, but I just wanted to get clarification.
We currently set validation to false when there is no schema bound to an instance document. I've e-mailed Sandy to make sure this is all we need to do to cover the lax validation described in SML bug 5797.
A vanilla SAX parser is used for instance documents without a bound schema.
> John, does this mean we shouldn't do any validation if there are no instance > documents in the SML-IF file? Or do you mean no schema validation against the > instance document, but there still should be validation of the schema document > itself? Based on a conversation that Ali had with Sandy, it would seem that > the latter is the case, but I just wanted to get clarification. > There still should be validation of the schema document itself, as Sandy said. hopefully the SML spec updates, which should be in the bug URL I provided, are clear enough for implementers on this point. If not, please raise a bug against SML or re-open 5797.
closing to cleanup bugzilla