Re: [xml] problem with id and xpath in 2.5.7
- From: Stefan Seefeld <seefeld sympatico ca>
- Cc: libxml2 <xml gnome org>
- Subject: Re: [xml] problem with id and xpath in 2.5.7
- Date: Mon, 28 Apr 2003 12:38:12 -0400
Petr Pajas wrote:
> Hi,
>
> According to xml specs, ID like a:b should be perfectly valid as it
> matches the Name production http://www.w3.org/TR/REC-xml#NT-Name
according to the same document:
"The Namespaces in XML Recommendation [XML Names] assigns a meaning to
names containing colon characters. Therefore, authors should not use the
colon in XML names except for namespace purposes, but XML processors
must accept the colon as a name character."
In short, an element with name "a:b" has 'local name' 'b', and a
'namespace alias' 'a'. The same applies to attributes...
Regards,
Stefan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]