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

Re: Six Reasons Not to use XML Attributes

  • From: "Christopher R. Maden" <crism@maden.org>
  • To: xml-dev@lists.xml.org
  • Date: Fri, 02 Mar 2012 14:00:55 -0500

Re:  Six Reasons Not to use XML Attributes
On 03/02/2012 01:44 PM, Andrew Welch wrote:
>> That's what I meant by the field needing to be repeatable.  Chris 
>> Maden devised the system that $EMPLOYER is using, which involves 
>> personNameProfile elements which are themselves repeatable, and
>> which have children for purpose, pattern (what order to put the
>> textual elements in), the (meta-)name of this profile, full name,
>> and five elements for name parts: givenName (repeatable),
>> familyName (repeatable), prefix, suffix, nickname, and full name,
>> all of which are optional.  There is continual pressure to add
>> middleName, but so far we have effectively resisted it: canonical
>> U.S. middle names are additional given names.
> 
> Straying off topic - why not use the foaf markup?

The use case at $EXEMPLOYER[*] involved an entity[†] mastering system;
the XML serialization was primary in human-readable documents but also
interchange to and from the entity master.  That and some other business
dictates put constraints on the nature of the markup.

We ended up with a full name, which is an unstructured string, for when
the structure is not (yet) known, as well as a set of strings with
metadata (as John describes) for when the structure is known.  It’s
important to know the family name, for instance, when doing entity
recognition against a news article or legislative or court transcript;
it’s also important to know nicknames and common misspellings for
similar reasons.

The resulting markup is mappable to and from FOAF, but FOAF wasn’t
directly usable as-is.

~Chris

[*] A brief visit to LinkedIn should render this obfuscation trivial, if
anyone cares.
[†] “Entity” in the sense of real-world concept, not in the XML sense(s).
-- 
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
“Be wary of great leaders.  Hope that there are many, many small
 leaders.” — Pete Seeger


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.