W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2002

RE: Names beginning with xml...

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Wed, 24 Jul 2002 14:55:48 -0400 (EDT)
Message-ID: <DFF2AC9E3583D511A21F0008C7E621060453DA16@daemsg02.software-ag.de>
To: David Carlisle <davidc@nag.co.uk>, public-qt-comments@w3.org

I think I would take the view that the restriction *doesn't* apply to names
declared in XPath and XSLT, but I agree it should be clarified.

The view seems to be that "reserved" means that users should avoid these
names but software should accept them, so the practical implications are
possibly rather academic.

Michael Kay

> -----Original Message-----
> From: David Carlisle [mailto:davidc@nag.co.uk] 
> Sent: 24 July 2002 12:31
> To: public-qt-comments@w3.org
> Subject: Names beginning with xml...
> This is related to a user example recently posted to 
> xsl-list. The example was demonstrating some other problem 
> but I note it had an XPath variable $xml.
> It wasn't clear to me (In XPath 1 or XPath 2 drafts) whether 
> this text (from XML 1.0 2e) is supposed to apply to QNames 
> (which are by definition also Names) used as variable names 
> (and other syntactic constructs such as mode names in XSLT). 
> As stated in XML spec it is not a restriction on element and 
> attribute names but on the use of the Name production itself 
> (arguably).
>   [Definition: A Name is a token beginning with a letter or 
> one of a few
>   punctuation characters, and continuing with letters, 
> digits, hyphens,
>   underscores, colons, or full stops, together known as name 
> characters.]
>   Names beginning with the string "xml", or any string which 
> would match
>   (('X'|'x') ('M'|'m') ('L'|'l')), are reserved for standardization in
>   this or future versions of this specification.
> I don't really mind either way but perhaps this could be made 
> clearer in 2.0 ?
> David
> _____________________________________________________________________
> This message has been checked for all known viruses by Star 
> Internet delivered through the MessageLabs Virus Scanning 
> Service. For further information visit 
> http://www.star.net.uk/stats.asp or > alternatively call Star 
> Internet for details on the Virus Scanning Service.
Received on Wednesday, 24 July 2002 15:36:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:43 UTC