|
[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Global attribute vs. simpleType
From: Rich Adili <Rich.Adili@xata.com>
Date: Mon, 21 May 2007 11:31:18 -0500 Message-ID: <A0340B4A1C76734798D48BF3F09C62061F9606@EXCHVS01.xata.com> To: <xmlschema-dev@w3.org> 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 AdiliReceived on Monday, 21 May 2007 16:31:31 GMT |
Subscribe in XML format
|






