W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > May 2011

Reserved XML names and namespaces

From: Michael Schäfer <michael.schaefer@destatis.de>
Date: Thu, 12 May 2011 11:56:13 -0400
Message-ID: <4DC97E2E.5080303@destatis.de>
To: public-xml-core-wg@w3.org
Dear Madam or Sir,

I'm an employee of the Federal Statistical Office and member of
a working group that developed an XML protocol for exchanging
data between businesses and public administrations.

A few days ago an implementor has come up with a question about
the protocol's conformity with the XML specification, since the
root element is named 'XMLTransport' and possibly considered a
reserved name according to that specification.

However, that element is defined in a namespace, so according to
the XML Namespaces specification the local part of its name must
conform to

   http://www.w3.org/TR/2009/REC-xml-names-20091208/#NT-LocalPart

which is equivalent to NCName at

   http://www.w3.org/TR/2009/REC-xml-names-20091208/#NT-NCName

which refers back to Name at

   http://www.w3.org/TR/REC-xml/#NT-Name

in the XML specification, excluding the colon from the character
space.

Name defines syntax and character space for legal XML Names. The
"rule" defining reserved names appears separately somewhat earlier
in the same section. It's applicability seems to be restricted to
the XML specification ("this specification"). Also, it is not a
production.

To me, it is unclear wether or not that rule applies to XML names
defined in an XML namepace.

I'd appreciate any clarification or helpful pointers on that subject.

Thank you vermy much in advance,

Michael Schäfer

-- 
_____________________________________

    Michael Schäfer

    C304 Werkzeuge und Standards

    Telefon +49 (0)611.753652

    michael.schaefer@destatis.de
    www.destatis.de

    DESTATIS
    wissen.nutzen. | Statistisches Bundesamt
Received on Thursday, 12 May 2011 15:56:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 12 May 2011 15:56:13 GMT