W3C home > Mailing lists > Public > public-xml-id@w3.org > April 2004

Minor nit - invalid attribute declaration of xml:id

From: Priscilla Walmsley <priscilla@walmsley.com>
Date: Thu, 15 Apr 2004 13:02:15 -0400
To: <public-xml-id@w3.org>
Message-Id: <20040415170243.9132CA31C1@frink.w3.org>


The attribute declaration in the schema fragment you show is not valid
because it prefixes the attribute name.  Only an NCName can be used in the
"name" attribute of the "xs:attribute" element.  It will automatically be
associated with the target namespace; no prefix is required.

It should read:

    <xs:attribute name="id" type="xs:ID"/>

Priscilla Walmsley
Received on Thursday, 15 April 2004 13:02:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:53:49 UTC