OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   What's difference between ref and type in XML schema

[ Lists Home | Date Index | Thread Index ]
  • To: <xml-dev@lists.xml.org>
  • Subject: What's difference between ref and type in XML schema
  • From: "Baisak, Ranjan" <ranjan_baisak@mentorg.com>
  • Date: Mon, 14 Mar 2005 17:39:52 +0530
  • Thread-index: AcT6bTU3FpRFKU59SsGlp9w6R6TTNwuIRbDA
  • Thread-topic: What's difference between ref and type in XML schema

I am bit confused regarding referring an element  and creating a data
type for an element and referring it.
E.g.
Referring by type
<xsd:element name="A" type="AType" maxOccurs="unbounded"/>
<xsd:complexType name="AType">
	..
</xsd:complexType>

Referring by element itself
<xsd:element ref="A" maxOccurs="unbounded"/>
<xsd:element name="A">
	<xsd:complexType>
	...
	</xsd:complexType>
</xsd:element>



regards,
-Ranjan




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS