Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Defining recursive elements? [Thread Next] Global attribute vs. simpleTypeTo: <xmlschema-dev@--.---> Date: 5/21/2007 6:31:00 AM Hi, Is there a practical difference between a reference to a global attribute and the use of a simpleType? Only thing I can see is that the ref forces the name of the attribute. <xs:element name="myroot"> <xs:complexType> <xs:attribute name="fooble" type="foober"/> <xs:attribute ref="fibber"/> </xs:complexType> </xs:element> <xs:attribute name="fibber"> <xs:simpleType> <xs:restriction base="xs:string"/> </xs:simpleType> </xs:attribute> <xs:simpleType name="foober"> <xs:restriction base="xs:string"/> </xs:simpleType> Rich Adili | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
