Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: How to *not* specify the order of occurrence?

From: cmsmcq@---.--- (-. -. ----------------)
To: NULL
Date: 7/2/2009 8:30:00 PM
Stephan Mann <groups@s...> writes:

> Hi,
>
> I want to give this one more try before I accept that this can't be
> done. I did ask for this two weeks ago in this group[1] but did not
> receive any answers, so I'm trying to rephrase my question.
>
> I'm trying to remove the (inherent?) specification of the order of
> occurrence from my XML schema. The goal is to allow elements to occur
> in any order but still be able to set elements required or optional.

It's a bit late to be following up on this, probably too late
to help the OP.

But if the OP's description of the goal is correct (allow any
order, and mark elements required or optional) and the example
is characteristic (none of the elements in question appears more
than once), the xsd:all can do what appears to be required.

N.B. using xsd:all does NOT mean that the order of elements
is not significant.  (If the order has no significance, 
there is really very little reason to allow the order to vary.
Variable but meaningless ordering is also a method of
steganography, which may worry some security people.)

If some elements are allowed or required to appear more
than once, the XSD 1.0 all-group cannot be used to express
the desired constraint; that restriction has been relaxed
in XSD 1.1.

I hope this helps.



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