-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Folks-
I've been trying to simplfy my XML schema, and found something that to me
should work, but it doesn't. It's a question on the proper way to map complex
types. In my example, I've defined Address as follows...
<xsd:element name="Address">
<xsd:complexType>
<xsd:sequence>
<xsd:element name = "StreetAddress1" type="xsd:string"/>
<xsd:element name = "StreetAddress2" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
The following is an element named WorkAddress which is of type Address. This
works in Castor
<xsd:element name = "WorkAddress">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base = "Address">
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
That maps WorkAddress as a type of Address just fine. But when I switch
WorkAddress to this (With Address defined as above):
<xsd:element name = "WorkAddress" type="Address"/>
Castor says "Type not found for element: WorkAddress" Why is this the case?
Also, is anyone using XMLTurbo from Tibco to generate schema for Castor?
XMLTurbo doesn't support either way to define WorkAddress. When I group'd
items in XMLTurbo, it came up with a different route that castor couldn't
understand.
Thanks for your help.
Virtually,
Ned Wolpert <[EMAIL PROTECTED]>
D08C2F45: 28E7 56CB 58AC C622 5A51 3C42 8B2B 2739 D08C 2F45
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7zv+CiysnOdCML0URApVVAJwLrzScEr211yEcbDeOQN3tgG4eygCeMWw2
yrOvRz+1d/va9knqH6o2JB0=
=mk0L
-----END PGP SIGNATURE-----
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev