W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2000

Re: "ref" attribute

From: <Noah_Mendelsohn@lotus.com>
Date: Mon, 13 Nov 2000 18:40:27 -0500
To: "Noga Atsil" <NogaA@smarteam.com>
Cc: www-xml-schema-comments@w3.org
Message-ID: <OFF79A89E6.54558751-ON85256996.007B1727@lotus.com>
Noga Atsil writes:

>> Is "ref" attribute reminded at XML-Schema part 1 (structures)

Specifically, it's explained at:  [1] .  From there:

<element 
  abstract = boolean : false
  block = (#all | List of (substitution | extension | restriction)) 
  default = string 
  final = (#all | List of (extension | restriction)) 
  fixed = string 
  form = (qualified | unqualified)
  id = ID 
  maxOccurs = (nonNegativeInteger | unbounded)  : 1
  minOccurs = nonNegativeInteger : 1
  name = NCName 
  nullable = boolean : false
  ref = QName 
  substitutionGroup = QName 
  type = QName 
  {any attributes with non-schema namespace . . .}>
  Content: (annotation? , ((simpleType | complexType)? , (key | keyref | 
unique)*))
</element>

Note the "ref = QName".  And from the tableau  below that (near the 
bottom):

"...otherwise (the element element information item has complexType or 
group as an ancestor and the ref [attribute] is present), the 
corresponding schema component is as follows (unless 
minOccurs=maxOccurs=0, in which case the item corresponds to no component 
at all):
 
Particle Schema Component 
=========================

{min occurs} The numeric normalized 
             value of the minOccurs 
             [attribute], if present, 
             otherwise 1 
{max occurs} unbounded, if the maxOccurs 
             [attribute] equals unbounded, 
             otherwise the numeric normalized 
             value of the maxOccurs [attribute], 
             if present, otherwise 1. 
{term}       The (global) element declaration 
             resolved to by the normalized value 
             of the ref [attribute] ."

That's it.
 
[1] http://www.w3.org/TR/xmlschema-1/#element-element.

------------------------------------------------------------------------
Noah Mendelsohn                                    Voice: 1-617-693-4036
Lotus Development Corp.                            Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
------------------------------------------------------------------------
Received on Monday, 13 November 2000 18:47:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:49 GMT