[
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
http://www.saxonica.com/
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">
Thanks, Anne
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
|