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

XLink 1.1 WD: Optional type attribute

From: Christian Biesinger <cbiesinger@web.de>
Date: Fri, 05 Aug 2005 15:58:44 +0200
Message-ID: <42F37094.8050004@web.de>
To: www-xml-linking-comments@w3.org
CC: Boris Zbarsky <bzbarsky@MIT.EDU>
Hi,
The XLink 1.1 WD (http://www.w3.org/TR/2005/WD-xlink11-20050707/) 
specifies that the type attribute is optional (if the type is simple):
"An XML element conforms to XLink if:
[...]
    2.
       it does not have a type attribute from the XLink namespace and it 
adheres to the conformance constraints imposed by the XLink simple 
element type, as prescribed in this specification."

However, not all places in the specification seem to say that:
Consider http://www.w3.org/TR/2005/WD-xlink11-20050707/#link-types
"Constraint: type Value

The value of the type attribute must be supplied. [...]"


The example in 5.2 is also a bit confusing:
"The XLink element for simple links is any element with an attribute in 
the XLink namespace called type with a value of "simple". The simple 
equivalent of the above extended link would be as follows:

<studentlink xlink:href="...">Pat Jones</studentlink>
"

Contrary to what the prose implies, the example has no type attribute.

I think the 5.2 section should also mention somewhere that the type 
attribute is optional if href is specified.

thanks,
-biesi
(please CC me on replies, I'm not subscribed to this list)

Received on Friday, 5 August 2005 13:56:44 GMT

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