OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] <xs:group> name versus id attributes

[ Lists Home | Date Index | Thread Index ]

For the record, section 2.8 of the primer makes the same error in respect of attribute groups.
Michael Kay

From: Anne Thomas Manes [mailto:atmanes@gmail.com]
Sent: 24 June 2006 00:22
To: Dennis Sosnoski
Cc: xml-dev@lists.xml.org
Subject: Re: [xml-dev] <xs:group> name versus id attributes

So should I then assume that this example from the XML Schema Primer is in error?

The group should be defined as:

        <xsd:group name="shipAndBill">


On 6/23/06, Dennis Sosnoski <dms@sosnoski.com> wrote:
Hi Anne,

All the schema elements have an optional id attribute, which is just a
standard ID-type value (basically a non-namespaced name that can be used
to reference the element, using values of type IDREF, anywhere within
the document). Even though schema includes the id attribute on all the
elements AFAIK it doesn't define any use for the id. The name attribute
is what defines the name by which the group will be referenced, with the
namespace of that name controlled by the schema targetNamespace attribute.

  - Dennis

Anne Thomas Manes wrote:
> Can someone explain to me the difference between the name and id
> attributes in the <xs:group> element?
> Thanks,
> Anne


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS