For the same example if camera.xsd reads
<?xml version="1.0" ?>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.camera.org" xmlns:nikon="http://www.nikon.com"
elementFormDefault="qualified">
<xsd:import namespace="http://www.nikon.com" schemaLocation="Nikon.xsd" />
- <xsd:element name="camera">
- <xsd:complexType>
<xsd:element name ="BodyType" type="nikon:body_type" /> -- CHANGE
</xsd:complexType>
</xsd:element>
</xsd:schema>
If I get the ContentSpec from camera, ideally I should get BodyType. However
it return
the spec to be nikon:description.
So my resulting xml is
<camera>
<description/>
</camera>
NOT
<camera>
<BodyType>
<description>
</BodyType>
</camera>
The funny part is if I change BodyType type from nikon:body_type to a
complex type declaration in the SAME target namespace(camera)it says then I
do get BodyType as an enclosing element. Am I missing something here.
Kiran
-----Original Message-----
From: Bagepalli, Kiran [mailto:kbagepalli@;informatica.com]
Sent: Monday, October 28, 2002 7:25 PM
To: '[EMAIL PROTECTED]'
Subject: SEnumVal example
I have a schema like
camera.xsd
<?xml version="1.0" ?>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.camera.org" xmlns:nikon="http://www.nikon.com"
elementFormDefault="qualified">
<xsd:import namespace="http://www.nikon.com" schemaLocation="Nikon.xsd" />
- <xsd:element name="camera">
- <xsd:complexType>
<xsd:element ref="nikon:body_type" />
</xsd:complexType>
</xsd:element>
</xsd:schema>
nikon.xsd
<?xml version="1.0" ?>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.nikon.com" xmlns="http://www.nikon.com"
elementFormDefault="qualified">
- <xsd:complexType name="body_type">
- <xsd:sequence>
<xsd:element name="description" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
If I scan camera.xsd, it crashes for processDatatypeValidator.
Can someone help.
Kiran
---------------------------------------------------------------------
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]