[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Attribute Usage
Also: 3. Order of attributes is not enforced (i.e. a processor is not required to retain the order) Kind Regards, Joseph Chiusano Booz Allen Hamilton Visit us online@ http://www.boozallen.com > -----Original Message----- > From: Doug Rudder [mailto:drudder@d...] > Sent: Monday, March 14, 2005 4:07 PM > To: 'Farid.Mahini@L...'; xml-dev@l... > Subject: RE: Attribute Usage > > It's a pretty subjective concept, and there is no hard and > fast rule of law. > Generally speaking: > > 1. Attributes are metadata (information about information) > and usually > represent properties of information. They can't contain > mixed content or child elements, and don't define structure > in the document. > > 2. Elements are data and represent components of > information. They can > contain mixed content and child elements. Elements provide > both content definition and structure to the document. > > An ID would be a good example of an attribute. It does not > define content or structure, but does provide a unique > identifier for an element that does. > > ======================= > Douglas Rudder > XML Analyst > WoltersKluwer Health - Clinical Tools > 77 West Port Plaza, Suite 450 > Phone: 314-216-2227 > e-mail: drudder@d... > www.drugfacts.com > ======================= > > > -----Original Message----- > From: Farid.Mahini@L... [mailto:Farid.Mahini@L...] > Sent: Monday, March 14, 2005 3:01 PM > To: xml-dev@l... > Subject: Attribute Usage > > Hi, > > What is the purpose of element attribute? And is there a > usage rule-of-thumb for element attribute (attribute vs. > child element) ? > Thanx, > -Farid > > > > From E-mail Administrator > ATTENTION PLEASE: Do you have our new e-mail addresses? > The current L-3 standard is First.Last @ L-3com.com E-mail > addressed to First.Last @ te.L-3com.com will no longer be delivered. > Please update your address book using the "From" address on > this email. > > > > ----------------------------------------------------------------- > The xml-dev list is sponsored by XML.org > <http://www.xml.org>, an initiative of OASIS > <http://www.oasis-open.org> > > The list archives are at http://lists.xml.org/archives/xml-dev/ > > To subscribe or unsubscribe from this list use the subscription > manager: <http://www.oasis-open.org/mlmanage/index.php> > > ----------------------------------------------------------------- > The xml-dev list is sponsored by XML.org > <http://www.xml.org>, an initiative of OASIS > <http://www.oasis-open.org> > > The list archives are at http://lists.xml.org/archives/xml-dev/ > > To subscribe or unsubscribe from this list use the subscription > manager: <http://www.oasis-open.org/mlmanage/index.php> > >
|
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
|