Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Can XML Schema represent this?

From: richard@------.--.--.-- (------- -----)
To: NULL
Date: 6/2/2004 2:47:00 PM
In article <2998ab03.0406020523.5c64ffe4@p...>,
Steven Burr <sburr@a...> wrote:

>I would like to restrict the values of an attribute to boolean
>expressions combining enumerated values. Is this possible?

You would have to use a regular expression.  Something like

  "(apples|oranges|bananas|pears) (OR|AND) (apples|oranges|bananas|pears)"

>    <xs:restriction base="myAttributeValues">
>
>      <!-- WHAT GOES HERE TO ALLOW BOOLEAN EXPRESSIONS
>           OF THE ENUMERATED TYPE VALUES? -->
>
>    </xs:restriction>

This is not going to work, since it's not a restriction of the base
type.  If a type R is a restriction of a type B, then all legal R values
are legal B values.  But "apples OR oranges" is not a legal value for
myAttributeValues.

-- Richard


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