Free Newsletters
Technology & Business Daily

InfoWorld
Log-in | Register

  Thursday, February 05, 2004 

Experimental attributes

There have been a number of thoughtful responses to my confession, the other day, about cheating on Web standards. Several folks recommended this approach:

<blockquote 
   cite="http://www.betaversion.org/~stefano/linotype/news/35/"
   title="Stefano Mazzocchi">
...
</blockquote>
Jim White also made this intriguing proposal:
<blockquote cite="urn:name:Stefano%20Mazzocchi">
..
</blockquote>
Jim pointed me to the IANA registry of URN namespaces, noting that while 'name' is not among those registered namespaces, and the one you can find there -- RFC3043, Personal Internet Name (PIN): A URN Namespace for People and Organizations -- isn't quite right either, these are examples of valid ways to extend an attribute that takes a URI as its value.

Of course that still left the other problem:

<pre class="code" lang="python">
..
</pre>

I think that for the next phase of this experiment, I should just bite the bullet and start writing nonstandard attributes -- such as 'lang' in this case -- into another namespace. For an author, as Jim points out, there's not a lot of extra friction or overhead. It could be as little as two extra characters:

<pre class="code" e:lang="python">
..
</pre>
The 'e' would be for 'experimental' -- mapped to what URI I don't yet know. As Jim rightly points out, the burden to process these experimental attributes would fall mainly on developers of authoring and search tools, not on users. Since I've got a couple of my own XML-aware search tools running now, I'll give this a whirl and see how it goes. Thanks to everybody who commented on this matter. I will continue to be interested to hear from people with ideas about how to strike the right balance.

 


Recent Entries


















































Sponsored Technology Links

 
 
 HOME  NEWS  BLOGS  PODCASTS  VIDEOS  TECHNOLOGIES  TEST CENTER  EVENTS  CAREERS   About | Advertise | Awards | RSS | Contact Us 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy, Terms of Service.
All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses,
phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

CIO :: ComputerWorld :: CSO :: Demo :: GamePro :: Games.net :: IDG Connect :: IDG World Expo
Industry Standard :: IT World :: JavaWorld :: LinuxWorld :: MacUser :: Macworld :: Network World :: PC World :: Playlist