[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Structured attributes
>>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/ ***************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|