Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Component representation of xs:group ref="x"

From: "Michael Kay" <mike@--------.--->
To: <xmlschema-dev@--.--->
Date: 11/2/2004 11:50:00 PM
I'm trying to understand the relationship of the schema component model of
particles and terms to the XML representation using xs:group elements.

In 3.9 we see

<xs:group ref="omelette" minOccurs="0"/>

as a representation of a Particle. A particle has a term, which is either a
model group, a wildcard, or an element declaration. A model group has a
compositor which is one of all, choice or sequence. There's no fourth kind
of particle that is a "model group reference".

So it seems that in order to construct the schema component model, we must
dereference the <xs:group ref="x"> and replace it with the contents of the
named model group (the model group definition) that it refers to. There
doesn't seem to be any schema component that contains a reference to a model
group definition. In fact, the model group definition itself seems to be
completely redundant as a schema component, because there is nothing that
refers to it.

Neither 3.9.2, which discusses particles, nor 3.8.2, which discusses model
groups, seems to explain how the <xs:group ref=""> representation is
translated into schema components. In fact, 3.9.2 seems to point you to
3.8.2, and 3.8.2 doesn't acknowledge the existence of named groups at all.

A similar kind of collapsing of XML representations into schema components
seems to occur with attribute groups. There is a schema component
corresponding to an attribute group definition, but there is no schema
component (other than the schema itself) that refers to it.

This seems to cause further havoc when trying to interpret section 5.3
(missing sub-components) and chameleon namespace behaviour. It seems to make
it increasingly difficult to decide whether xs:include and xs:redefine
operate on a set of schema components or on a set of XML representations.

Have I got the wrong end of the stick?

Michael Kay
http://www.saxonica.com/


From ht@i... Wed Nov 03 08:56:59 2004
Received: from bart.w3.or


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent