[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Including multiple schemas - duplicate name errors
Well you could define the element once and then every other occurence refer to it. example: <xsd:element name="foo" type="xsd:string"/> <xsd:element name="foobar"> <xsd:complexType> <xsd:element ref="foo"/> <xsd:element name="bar" type="xsd:string"> </xsd:complexType> </xsd:element> <xsd:element name="foofoo"> <xsd:complexType> <xsd:element ref="foo"/> <xsd:element ref="foo"/> </xsd:complexType> </xsd:element> Laura Cheryl_Gielau@c... wrote: > Hello, > I have a schema (A) that logically contains > 2 other schemas (B & C). I used the > include feature to bring B & C into the > A schema. Some of the elements > between the B & C schemas have the > same name (and logically have the same > definition) and the parser tells me that the > element type has been defined more than > once in the A schema. > > What are some ways I could resolve this? > > Cheryl > > > > ----------------------------------------------------------------- > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an > initiative of OASIS <http://www.oasis-open.org> > > The list archives are at http://lists.xml.org/archives/xml-dev/ > > To subscribe or unsubscribe from this elist use the subscription > manager: <http://lists.xml.org/ob/adm.pl>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|