Re: [xml] bug in xpath/xpointer ids processing?





 No, that's a violation of the XML spec:
   http://www.w3.org/TR/REC-xml#sec-attribute-types
 "Values of type ID must match the Name production."
 [5]    Name    ::=    (Letter | '_' | ':') (NameChar)*

 The ID name is not correct. This is not reported because apparently
the document isn't validated, but since it's not a Name, this can't be used
as an ID and xpath code is perfectly right in checking and preventing its
use as an id.

The libxml2 code should not be changed in this case. And you should report the error to your user before he think he can deploy instance of
documents with + in ID names.
Cool! Thanks for clarification!

Aleksey




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]