Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Occurrence constraints

From: "Xan Gregg" <Xan.Gregg@---.--->
To: "Keith Suderman" <keith@--------.--->, <xmlschema-dev@--.--->
Date: 6/3/2004 9:02:00 AM
The last clause of the following constraint rules out having 
both minOccurs="0" and maxOccurs="0" specified:

  Schema Component Constraint: Particle Correct
  All of the following must be true:
  1 The values of the properties of a particle must be as described
   in the property tableau in The Particle Schema Component (=A73.9.1),
   modulo the impact of Missing Sub-components (=A75.3).
  2 If {max occurs} is not unbounded, that is, it has a numeric value,
   then all of the following must be true:
  2.1 {min occurs} must not be greater than {max occurs}.
  2.2 {max occurs} must be greater than or equal to 1. 

On the other hand, there are also multiple parenthetical comments, such =
as 

  (unless minOccurs=maxOccurs=0, in which case the item
  corresponds to no component at all)

But I think the constraint dominates.

I don't know of a better solution to your second issue.

xan

-----Original Message-----
From:Keith Suderman
Sent: Thursday, May 27, 2004 4:44 AM
Subject: Occurrence constraints

Two quick questions.

1. Is it legal to have both minOccurs="0" and maxOccurs="0" =
specified for 
an element?

2. What is the best way to define SGML SDATA entities (i.e. eacute) for =
an 
XML document using XML Schema?  Currently I am using the DOCTYPE to =
specify 
an "empty" DTD that does nothing but define the entities and a schema =
for 
the document structure.  However, some XML parsers do not like this 
approach.  Is there a better way of going about this?

Thanks in advance.
Keith



From Xan.Gregg@j...  Thu Jun  3 13:14:29 2004
Return-Path: <Xan.Gregg@j...


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