Problem with xsd validation
Posted: Fri Dec 11, 2015 1:00 pm
Hello,
I'm not able to valide 2 xsd file:

The 2 xsd:
form_v1.xsd
enterpriseNumber_v1.xsd
Both xsd are in the same directory, when i crt+click on the "entnum:CbeEntityNumber", he open the enterpriseNumber_v1.xsd file.
Same probleme with Saxon, Xerces and Schematron validator.
I use oxygen 17.1
Other include works fine (but removed for the sample)
I can validate it with xmlspy.
Any idea why i get this error?
System ID: C:\Workspace\Schemas\exposed\xsd\services\flatten\form_v1.xsd
Main validation file: C:\Workspace\Schemas\exposed\services\flatten\form_v1.xsd
Engine name: Xerces
Severity: error
Description: src-resolve: Cannot resolve the name 'entnum:CbeEntityNumber' to a(n) 'type definition' component.
Start location: 13:70
End location: 13:94
URL: http://www.w3.org/TR/xmlschema-1/#src-resolve
I'm not able to valide 2 xsd file:

The 2 xsd:
form_v1.xsd
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://spw.wallonie.be/services/form/messages/v1" version="1.0"
xmlns:entnum="http://bced.wallonie.be/data/entity/enteprise/number/v1" xmlns:tns="http://spw.wallonie.be/services/form/messages/v1"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://bced.wallonie.be/data/entity/enteprise/number/v1" schemaLocation="enterpriseNumber_v1.xsd"/>
<xs:complexType name="GetPrefilledDataRequestType">
<xs:sequence>
<xs:element name="request">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element name="enterpriseNumber" type="entnum:CbeEntityNumber"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
enterpriseNumber_v1.xsd
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://bced.wallonie.be/data/entity/enteprise/number/v1"
vc:minVersion="1.1" version="1.1" xmlns:num="http://bced.wallonie.be/data/entity/enteprise/number/v1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="CbeEntityNumber">
<xs:restriction base="xs:long"/>
</xs:simpleType>
</xs:schema>
Same probleme with Saxon, Xerces and Schematron validator.
I use oxygen 17.1
Other include works fine (but removed for the sample)
I can validate it with xmlspy.
Any idea why i get this error?
System ID: C:\Workspace\Schemas\exposed\xsd\services\flatten\form_v1.xsd
Main validation file: C:\Workspace\Schemas\exposed\services\flatten\form_v1.xsd
Engine name: Xerces
Severity: error
Description: src-resolve: Cannot resolve the name 'entnum:CbeEntityNumber' to a(n) 'type definition' component.
Start location: 13:70
End location: 13:94
URL: http://www.w3.org/TR/xmlschema-1/#src-resolve