This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 244307 - laxly validate instance documents without bound schemas, and strictly validate others
Summary: laxly validate instance documents without bound schemas, and strictly validat...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: amehrega CLA
QA Contact: amehrega CLA
URL: http://www.w3.org/Bugs/Public/show_bu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-15 10:51 EDT by John Arwe CLA
Modified: 2012-01-03 13:47 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arwe CLA 2008-08-15 10:51:37 EDT
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.
Comment 1 David Whiteman CLA 2008-08-15 11:11:03 EDT
(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.

Comment 2 amehrega CLA 2008-08-18 10:49:30 EDT
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.
Comment 3 amehrega CLA 2008-08-18 13:06:33 EDT
A vanilla SAX parser is used for instance documents without a bound schema.  
Comment 4 John Arwe CLA 2008-08-21 11:34:00 EDT
> 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.
Comment 5 David Whiteman CLA 2008-11-05 14:59:27 EST
closing to cleanup bugzilla