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

XQuery: A.3 Reserved Function Names

From: Michael Dyck <jmdyck@ibiblio.org>
Date: Mon, 16 Dec 2002 00:18:31 -0800
To: public-qt-comments@w3.org
Message-id: <3DFD8C57.D1D91C0B@ibiblio.org>

XQuery 1.0: An XML Query Language
W3C Working Draft 13 November 2002

A.3 Reserved Function Names

(Are these names in any particular order? If not, how about alphabetical?)

I can see why you'd need to forbid these as function names:
    comment
    if
    node
    processing-instruction
    text
    typeswitch
but why these?:
    item
    element
    attribute
    id
    key

In fact, since 'id' and 'key' don't occur anywhere in the grammar, there
doesn't seem to be any reason to reserve them in any context.

To eliminate the ambiguity of ItemType, it looks like you'll have to forbid
these lexemes as the QName of the AtomicType of an ItemType:
    element
    attribute
    node
    processing-instruction
    comment
    text
    document
    item
    untyped
Similarly, you'll have to forbid "empty" as the QName of the AtomicType of
the ItemType of a SequenceType.

-Michael Dyck
Received on Monday, 16 December 2002 03:40:09 UTC

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