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

Re: Determining attribute uniqueness seems to require namespace prefix in Infoset

From: Dan Connolly <connolly@w3.org>
Date: Mon, 14 Aug 2000 00:53:47 -0500
Message-ID: <3997896B.7FA37242@w3.org>
To: John Boyer <jboyer@PureEdge.com>
CC: "Donald E. Eastlake 3rd" <dee3@torque.pothole.com>, xml-names-editor@w3.org, www-xml-infoset-comments@w3.org, XML DSig <w3c-ietf-xmldsig@w3.org>
John Boyer wrote:
> This means if I put an HTML island in the middle of some XML by adding
> xmlns="http://www.w3.org/TR/REC-html40" to the html tag, then when I want
> the href of some anchor, I cannot simply say
> 'get("http://www.w3.org/TR/REC-html40", href)'.  I must instead say
> 1) get("http://www.w3.org/TR/REC-html40", href)
> 2) if that fails, then get("", href)

I don't know why you're looking for a qualified form
of the href attribute. There just isn't one.

I could see:
	get("http://www.w3.org/1999/xhtml", "a", "href")

	get("http://www.w3.org/1999/xhtml", "link", "href")

But it seems that your get() method is called when you
already have an element in mind:
	getElt("http://www.w3.org/1999/xhtml", "a").getAttr("", "href")

or, in XPath syntax, with html: suitably bound:

as opposed to

which doesn't make much sense, since
there's no href attribute on the p element, for example.

It might make sense to look for qualified forms of
the so-called "global attributes":
	get("http://www.w3.org/1999/xhtml", "style")
or in XPath:	*/@html:style

but the XHTML namespace name isn't specified to
work that way (yet, at least).

> Once again... Yikes!

I think you've somehow latched on to the idea
that attributes need to be associated with
namespace names in order to make sense. They just
don't, any more than C structure field names
need to be globally qualified.

Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Monday, 14 August 2000 01:54:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:00 UTC