W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > February 2008

Re: Numbers as anchors

From: John Cowan <cowan@ccil.org>
Date: Thu, 14 Feb 2008 17:00:56 -0500
To: Daniel Veillard <daniel@veillard.com>
Cc: "Henry S. Thompson" <ht@inf.ed.ac.uk>, public-xml-core-wg <public-xml-core-wg@w3.org>
Message-ID: <20080214220056.GA32163@mercury.ccil.org>

Daniel Veillard scripsit:

>   Unfortunately matches the feedback I got. Basically people expect
> the XPath query id('123') to work, i.e. IDNeSS of the attribute to be
> asserted even if it didn't match the proper validity constraint associated
> and that to work from XPath/XPointer.

As indeed it should; the IDness of an attribute is independent of whether the
document in which it is embedded is valid or not.  If the id is not an NCName,
you get any of a validity error, a namespace error, or an xml:id error, none
of which are fatal.

Furthermore, I believe that the use of ids that are not NCNames in HTML
is acceptable HTML, though certainly not valid against the SGML DTD.

-- 
Yes, chili in the eye is bad, but so is your    John Cowan
ear.  However, I would suggest you wash your    cowan@ccil.org
hands thoroughly before going to the toilet.    http://www.ccil.org/~cowan
        --gadicath
Received on Thursday, 14 February 2008 22:01:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:39 UTC