ian, tnx for pointing this product out to me. it's pretty nice.
however, this exercise is turning out to be a fabulous example of the pains of being an 'early adopter' :-) xmlsqc supports the latest XMLSchema spec (2001) and xerces 131 supports 2000/10 :-) running the xerces sample xsd generates the following error: C:\XMLSQC>SQC c:\xerces-1_3_1\data\personal.xsd Initializing Schema Quality Checker. Please wait ... SchemaQualityChecker has been initialized PROCESSING c:\xerces-1_3_1\data\personal.xsd time : 2001-05-15T10:39:12 ... c:\xerces-1_3_1\data\personal.xsd (file 1 of 1) now being read ... ERROR file = null line 0 column 0 SEVERITY: 0 ERROR TYPE: 1 MESSAGE The version of Schema Quality Checker you are running checks schema in the http: //www.w3.org/2001/XMLSchema" syntax. The schema located at file:C:/xerces-1_3_1/ data/personal.xsd uses an earlier syntax. No checking can be performed on this s chema. ------------------------------------------------------------------------ end time = 2001-05-15T10:39:12 the next obvious hack is to simply change the schema reference from: <schema xmlns='http://www.w3.org/2000/10/XMLSchema'> to <schema xmlns='http://www.w3.org/2001/XMLSchema'> and then sad and unhappy things happen: C:\XMLSQC>SQC c:\xerces-1_3_1\data\personal.xsd Initializing Schema Quality Checker. Please wait ... SchemaQualityChecker has been initialized PROCESSING c:\xerces-1_3_1\data\personal.xsd time : 2001-05-15T10:42:05 ... c:\xerces-1_3_1\data\personal.xsd (file 1 of 1) now being read ... ERROR file = file:C:/xerces-1_3_1/data/personal.xsd line 38 column 56 SEVERITY: 1 ERROR TYPE: 1 MESSAGE Attribute "use" with value "default" must have a value from the list "(prohibite d|optional|required)". ------------------------------------------------------------------------ ERROR file = file:C:/xerces-1_3_1/data/personal.xsd line 38 column 56 SEVERITY: 1 ERROR TYPE: 1 MESSAGE Attribute "value" must be declared for element type "attribute". ------------------------------------------------------------------------ ERROR file = file:C:/xerces-1_3_1/data/personal.xsd line 7 column 65 SEVERITY: 1 ERROR TYPE: 2 MESSAGE The global element http://www.w3.org/2001/XMLSchema:person is not found, but "pe rson" appears in this reference without a namespace prefix, and items without a namespace prefix are assumed to be in the schema namespace because you have xmln s="http://www.w3.org/2001/XMLSchema". However, "person" is defined right here i n this schema document. You should declare a target namespace and define a name space prefix for it. this error gets repeated for each definition. i wont waste the bandwidth to report them all. can i fix the sample so that it conforms to 2001? but if i do that then it wont work with xerces 131, right? is xerces 1.4 going to support 2001? or will it be deferred to a later release? tnx for any clarification you can provide! i know that i have a lot of stuff in here..... On Tue, 15 May 2001, Ian Roberts wrote: > On Mon, 14 May 2001, John L. Utz III wrote: > > > is there somebody here who can tell me how all of this is supposed to > > work? > > > > 1. Can i validate a schema? > > Yes. > > > 2. if so, how do i validate it? against what? > > http://alphaworks.ibm.com/tech/xmlsqc > > Ian > > -- > Ian Roberts, Software Engineer DecisionSoft Ltd. > Telephone: +44-1865-203192 http://www.decisionsoft.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
