Re: Numbers as anchors

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