Return-Path: Delivered-To: apmail-xml-xerces-j-dev-archive@xml.apache.org Received: (qmail 23611 invoked by uid 500); 15 Apr 2003 06:35:07 -0000 Mailing-List: contact xerces-j-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: xerces-j-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list xerces-j-dev@xml.apache.org Received: (qmail 23534 invoked from network); 15 Apr 2003 06:34:57 -0000 Received: from decebal.sync.ro (217.156.64.242) by daedalus.apache.org with SMTP; 15 Apr 2003 06:34:57 -0000 Received: from spelling ([10.0.0.19]) by decebal.sync.ro (8.12.8/8.12.8) with SMTP id h3F6YsGx026814; Tue, 15 Apr 2003 09:35:01 +0300 Message-ID: <00cf01c30319$4653ab20$1300000a@spelling> From: "George Cristian Bina" To: References: Subject: Re: src-resolve.4: Components from namespace 'http://www.w3.org/2001/XMLSchema' are not referenceable from schema document Date: Tue, 15 Apr 2003 09:35:50 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, The problem is with your schema. If you will try to validate it you will get a lot of errors like: E s4s-elt-schema-ns: The namespace of element 'schema' must be from the schema namespace. (4:41) The current version of W3C XML Schema has the following namespace: http://www.w3.org/2001/XMLSchema (instead of http://www.w3.org/2000/10/XMLSchema) After you correct this you will get another error: E src-resolve.4.2: Components from namespace 'http://www.w3.org/2001/XMLSchema' are not referenceable from schema document 'file:/.... (9:22) This is because the timeInstant is no longer present in the primitive data types: http://www.w3.org/TR/xmlschema-2/#built-in-primitive-datatypes Hope that helps, George ------------------------------------------------------------- George Cristian Bina mailto:george@sync.ro COO - sync.ro Phone +40-(0)251-461480, +40-(0)251-461481 Fax +40-(0)251-461482 Mobile +40-(0)723-224067 SyncRO Soft srl, Bd N. Titulescu 170, Craiova, 1100 - Romania http://www.sync.ro XML Editor - http://www.oxygenxml.com/ ----- Original Message ----- From: To: Sent: Monday, April 14, 2003 10:35 PM Subject: src-resolve.4: Components from namespace 'http://www.w3.org/2001/XMLSchema' are not referenceable from schema document > Why am I getting the following error when trying to validate the following > XML with the attahced XML Schema. > > XML > > > > 2000-08-16T14:31:59 > HAF > 1234567890123 > > > SCHEMA > > > > elementFormDefault = "qualified"> > > > > = "xsd:timeInstant"/> > > > > > > > > > > > > > > > > > minOccurs = "0"> > > > > > > > > = "xsd:string" minOccurs = "0"/> > = "DecisionType" minOccurs = "0"/> > > > > > > > > > > > > > > > > minOccurs = "0"/> > minOccurs = "0"/> > = "0"/> > maxOccurs = "2"> > > > > = "required"> > > = "xsd:string"> > > > > > > > > > > > > = "0"/> > minOccurs = "0"/> > minOccurs = "0" maxOccurs = "6"/> > minOccurs = "0" maxOccurs = "4"/> > minOccurs = "0"/> > > > > > > > > > > > > > > CODE > > try > { > parser=(XMLReader)Class.forName(PARSER_NAME).newInstance > (); > > parser.setFeature > ( "http://xml.org/sax/features/validation",true); > parser.setFeature > ( "http://xml.org/sax/features/namespaces",true); > parser.setFeature > ( "http://apache.org/xml/features/validation/schema",true); > parser.setFeature > ( "http://apache.org/xml/features/validation/schema-full-checking",true); > parser.setFeature > ("http://apache.org/xml/features/continue-after-fatal-error",true); > parser.setFeature > ("http://apache.org/xml/features/validation/dynamic", false); > > parser.setProperty > ("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation ",schemaLocation); > > } > catch(SAXException se) > { > System.out.println(se); > } > > Sincerely, > Yarram Reddy > WebACE > Tie/L:870-5968 > OutsideLine:(248) 427-5968 > Email:YR11@daimlerchrysler.com > Pager: 313 714 5169 or YR11-page@dcx.com > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org > For additional commands, e-mail: xerces-j-dev-help@xml.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org For additional commands, e-mail: xerces-j-dev-help@xml.apache.org