W3C home > Mailing lists > Public > xml-names-editor@w3.org > January 2001

Re: Global Attributes Not Covered by the XML Specification?

From: Dan Connolly <connolly@w3.org>
Date: Mon, 08 Jan 2001 16:05:20 -0600
To: Axel Dahmen <a.dahmen@infozoom.de>
Cc: xml-dev@xml.org, xml-names-editor@w3.org
Message-id: <3A5A39A0.4CC12A9F@w3.org>
Axel Dahmen wrote:
> In the XLink specification 1.0, chapter 4, it says: "XLink's namespace
> provides global attributes for use on elements that are in any arbitrary
> namespace."
> As far as I've learned from the specs and the newsgroup, neither XML nor XML
> Namespaces provide a mechanism to define global attributes.
> Shouldn't the definition of global attributes be covered by the XML
> specification?

Not by *the* XML specification, but by *some* XML-related
specification(s), yes.

> How can someone make use of something undefined?

By layering definitions on top; TCP has a port number field,
but it's not completely defined by the TCP specs; to use
port 21, you read the SMTP spec; to use port 80, you
consult the HTTP spec, and so on.

The web uses late binding to figure out what's at the other
end of an identifier, so the analogy of a port number doesn't
fit exactly; but given a document with some attributes,
if they're namespace qualified, and if you can find
a specification for that namespace (e.g. by fetching one
via HTTP), that specification
may have some global attribute definitions.

XML Schema has a mechanism for global attributes:

  4.3.1 XML Representation of Attribute Declaration Schema Components

and the partNum, weightKg, etc. examples in the primer

RDF also has a mechanism:

2.2.2. Basic Abbreviated Syntax

[...] properties may be written as XML attributes of the Description
element. The previous example then becomes:

    <rdf:Description about="http://www.w3.org/Home/Lassila"
                     s:Creator="Ora Lassila" />

--        Resource Description Framework (RDF) Model and Syntax
Wed, 24 Feb 1999 14:45:07 GMT

> Axel Dahmen

Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Monday, 8 January 2001 17:07:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:13:25 UTC