W3C home > Mailing lists > Public > www-xml-linking-comments@w3.org > July to September 2000

role vs. arcrole

From: Elliotte Rusty Harold <elharo@metalab.unc.edu>
Date: Mon, 10 Jul 2000 19:02:42 -0700
Message-ID: <396A8042.D5DABC6F@metalab.unc.edu>
To: xlxp-dev@fsc.fujitsu.com
Cc: www-xml-linking-comments@w3.org
The July 3 XLink candidate recommendation introduces a new arcrole
attribute for arc type elements only, and it forbids the normal role
attribute on arc elements.

However, there really isn't that much difference between role and
arcrole, in fact absolutely nothing as far as an XLink processor is
concerned, so I'm wondering why the two separate attributes?  Both role
and arcrole must contain URIs (though parsers aren;t required to enforce
this). In both cases, the details of how or whether or when an XLink
processor will follow the URI in a role or an arcrole is application
dependent, as is the interpretation of what it does with the document it
finds at that URI.

The only difference I can find between role and arcrole is that the
document at the role URI describes the element whose role it is in some
general sense, whereas the document at the arcrole URI should
(unenforceably) describe the relationship between the two sides of the
arc (e.g. parent-child, employer-employee, etc.).  No details are
provided for what the syntax of these documents should be or how
applications should handle them. 

Given everything that's unspecified I don't see the importance of
distinguishing these two attributes. I propose making XLink simpler by
deleting arcrole and allowing role attributes on arc elements. A
suggestion as to what the role of an arc element should be can still be
provided, but I see no justification for two separate attributes here.

-- 
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|               Java I/O (O'Reilly & Associates, 1999)               |
|            http://metalab.unc.edu/javafaq/books/javaio/            |
|   http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ | 
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
+----------------------------------+---------------------------------+
Received on Monday, 10 July 2000 19:07:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:39:40 GMT