[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Arnold, Curt" <Curt.Arnold@h...>
  • To: "'ht@c...'" <ht@c...>
  • Date: Fri, 3 Mar 2000 07:27:51 -0700

>>Henry Thomson wrote:

  <person age='49'>
   <.name>
    <.first>Henry</.first>
    <.last>Thompson</.last>
    <.middle>Swift</.middle>
  </.name>
  <children otherParent='p33'>
   . . .
  </children>
 </person>

>>The constraints above are equivalent to allowing 'attribute' children
>>to the 'attribute' element in XML Schema, along with making the
>>attribute name uniqueness constraint cumulative:

How would structured attributes differ from using the <all> construct.  Wouldn't the following schema give you the same effect without the periods and producing non-XML 1.0 compatible documents.


 <element name='person'>
  <complexType>
   <element name='name'>
	<type>
		<all>
			<element name="first" minOccur="0" type="string"/>
			<element name="middle" minOccur="0" type="string"/>
			<element name="last" minOccur="0" type="string"/>
		</all>
   		<attribute name='age' type='integer'/>
      </type>
   </element>
 </element>


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member