Schema Validation Problem [message #584318] |
Sat, 20 March 2004 00:08 |
Eclipse User |
|
|
|
Originally posted by: cipher8000.yahoo.com
I am using 20040127_1738SL build. I have two schemas 1.boo.xsd 2. foo.xsd.
boo.xsd imports "foo" schema. foo.xsd is invalid because i used
type="xsd:aaaa". When i validate boo.xsd, the validate() doesn't populate
any diagnostic error messages. But if i validate foo.xsd seperately, i get
diagnostic error messages for unresolved type "xsd:aaaa"
this combination used to work in previous build.
here is the boo.xsd:
<schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://www.w3.org/2001/XMLSchema" xmlns:foo="http://foo.com">
<import namespace="http://foo.com" schemaLocation="foo.xsd"/>
<element name="fooElement" type="foo:fooElementType"/>
</schema>
here is the foo.xsd
<xsd:schema targetNamespace="http://foo.com"
xmlns="http://foo.com"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:complexType name="fooElementType">
<xsd:sequence>
<xsd:element name="end" type="xsd:aaaa"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
thanks
-muruga
|
|
|
Powered by
FUDForum. Page generated in 0.02905 seconds