Subject:Schema Newbie Author:Ivan Pedruzzi Date:13 Jul 2006 12:55 AM
Hi Dinesh,
It's a design choice.
If you decide to use a reference you need to define a global element as well. All global element are considered when validating a document root.
If you are planning to use "Charge" only as child element of other elements then you should consider to define a global complex type.
See the attached example product-charge.xsd
If you need to create just a group of attributes to re-use you should consider the AttributeGroup construct.
See the attached example product-charge-attributegroup.xsd