[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: malfunctioning, evil adult as XML

  • To: "Andrew Layman" <andrewl@m...>
  • Subject: Re: malfunctioning, evil adult as XML
  • From: Uche Ogbuji <uche.ogbuji@f...>
  • Date: Sat, 01 Feb 2003 10:36:49 -0700
  • Cc: xml-dev@l...
  • In-reply-to: Message from "Andrew Layman" <andrewl@m...> of "Thu, 30 Jan 2003 23:01:19 PST." <9B9A5456AFE99E4181416B252F63BDA207C4BBDA@r...>
  • Sender: Uche Ogbuji <uche.ogbuji@f...>

Re:  malfunctioning
> James Clark wrote: "RE: - they ought to have be able to structured
> values, just like elements (i.e. one could view the content of an
> element as a special unnamed attribute), .."
> 
> Agreed.  Attributes are highly useful as a means to attach metadata or
> annotations to elements.  Metadata itself may have structure and may
> have metadata, hence the utility of structured attributes and attributes
> of attributes.
> 
> The obvious syntactic device (in a future version of XML) for a
> structured attribute is something that looks much like an element, e.g.

[Interesting example snipped]

I can understand and respect the motivations for this, but I personally do not 
believe the benefits would be worth the disruption of such a fundamental 
aspect of XML.

I manage structured information through attributes all the time.  The way I do 
this is to make the attributes contain a term from a controlled vocabulary 
maintained elsewhere: frequently in RDF, sometimes in just other general XML 
formats.

I know that some folks here cannot abide such solutions, but in practical 
work, they do very well for me, and for many others.  In fact, I think this 
pattern improves design, and that fully atructured attributes would tend to 
encourage designs that suffer from excessive coupling.  That said, potential 
misuse is never really a solid primary argument for avoiding any feature.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
The open office file format  - http://www-106.ibm.com/developerworks/xml/librar
y/x-think15/
Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html
4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4su
ite5-i/
XML class warfare - http://www.adtmag.com/article.asp?id=6965



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.