You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/02/25 09:53:04 UTC
DO NOT REPLY [Bug 17364] New: -
Can't validate xml documents with imported and included schema
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17364>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17364
Can't validate xml documents with imported and included schema
Summary: Can't validate xml documents with imported and included
schema
Product: Xerces2-J
Version: 2.3.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Blocker
Priority: Other
Component: XML Schema Structures
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: achazelles@trium.com
CC: achazelles@trium.com
I can't validate xml documents which refered to various schema (I use the
feature "http://apache.org/xml/features/validation/schema") with the parser
Xerces2J (I tried the versions : 2.0.1, 2.1.0, 2.2.1, 2.3.0 ).
Let see the xml document :
<?xml version="1.0" encoding="UTF-8"?>
<response xmlns="http://www.eannet-france.org/epi/schemas/response"
xmlns:core="http://www.uc-council.org/smp/schemas/core"
xmlns:fmcg="http://www.uc-council.org/smp/schemas/fmcg"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.eannet-france.org/epi/schemas/response
http://www.eannet-france.org/epi/schemas/response/1.02/Response.xsd"
Version="1.02">
<responseHeader>
<responseIssuer>3027800020905</responseIssuer>
<responseInstanceCounter>0</responseInstanceCounter>
<responseHitsCounter>0</responseHitsCounter>
<responseErrorCode>INVALID_REQUEST</responseErrorCode>
</responseHeader>
</response>
The schema "Response.xsd" referes to others schemas "Fmcg.xsd", "Core.xsd". The
first one also referes to others schemas : one schema imported "Core.xsd" ,
five schema
included "FmcgIdentifiers.xsd", "FmcgOrder.xsd", "FmcgItem.xsd", "FmcgSimpleInvo
ice.xsd" and "FmcgDespatchAdvice.xsd".
I get these errors with the parser Xerces2J :
src-resolve.4.2: Components from namespace 'http://www.uc-
council.org/smp/schemas/core' are not referenceable from schema
document 'http://www.eannet-france.org/epi/schemas/FmcgOrder.xsd'.
src-resolve.4.2: Components from namespace 'http://www.uc-
council.org/smp/schemas/core' are not referenceable from schema
document 'http://www.eannet-france.org/epi/schemas/FmcgDespatchAdvice.xsd'.
src-resolve.4.2: Components from namespace 'http://www.uc-
council.org/smp/schemas/core' are not referenceable from schema
document 'http://www.eannet-france.org/epi/schemas/FmcgItem.xsd'.
src-resolve.4.2: Components from namespace 'http://www.uc-
council.org/smp/schemas/core' are not referenceable from schema
document 'http://www.eannet-france.org/epi/schemas/FmcgSimpleInvoice.xsd'.
src-resolve.4.2: Components from namespace 'http://www.uc-
council.org/smp/schemas/core' are not referenceable from schema
document 'http://www.eannet-france.org/epi/schemas/FmcgIdentifiers.xsd'.
cos-ct-extends.1.4.3.2.2.1: Error for type 'ItemInformationType'. The content
type of a derived type and that of its base must both be mixed or element-
only.cos-applicable-facets: Facet 'enumeration' is not allowed by this type.
src-ct.2: Complex Type Definition Representation Error for
type 'IdentificationType'. When simpleContent is used, the base type must be a
complexType whose content type is simple, or, only if extension is specified, a
simple type.
src-ct.2: Complex Type Definition Representation Error for
type 'AlternatePartyIdentificationType'. When simpleContent is used, the base
type must be a complexType whose content type is simple, or, only if extension
is specified, a simple type.
src-ct.2: Complex Type Definition Representation Error for
type 'AlternateItemIdentificationType'. When simpleContent is used, the base
type must be a complexType whose content type is simple, or, only if extension
is specified, a simple type.
When I validate with XMLSpy4.3 , I receive a positive response : my xml is
valid (Note that with the new version - XMLSpy5.3 - it is not working.)
Does a feature or a property for Xerces2J allow to validate xml documents with
imported schemas ?
Thanks for your response.
Trium.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org