Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Whitespace normalization for union types

From: Xan Gregg <xan.gregg@---.--->
To: ht@---.--.--.-- (----- -. --------)
Date: 6/2/2005 5:50:00 AM
On Jun 2, 2005, at 8:10 AM, Henry S. Thompson wrote:
> [First, it has to be noted that the definition of Datatype Valid [1]
> is broken -- it implies that if there's a *pattern* facet, the string
> being checked need not be in the lexical space of the type!]

I noticed that, too, but assumed the missing part of the validation 
must be covered somewhere else...

> This actually interacts with an existing issue, regarding the
> semantics of a type allowed as the type of e.g. an attribute as part
> of a complex type derived by restriction from a base type with a
> restricted union for that attribute (whew!) -- example:
>
>  <xs:complexType name="base">
>   <xs:attribute name="foo" type="fooSubType"/>
>  </xs:complexType>
>
>  <xs:complexType name="restr">
>   <xs:attribute name="foo" type="xs:token"/>
>  </xs:complexType>
>
> Currently this is a) allowed but b) means that the restricted type
> allows _more_ than the base type, which is not supposed to happen.
>
> We should probably solve both these problems together (and the latter
> issue suggests we'll go in Xan's direction, that is, we'll push the
> facets down onto all the member types. . .)

I think a reasonable solution for this problem would be to disallow 
such restrictions when the union type is not a "pure" facetless union.  
Anything that breaks as a result is already broken (relying on a broken 
feature).  Such a solution would allow the pattern/union problem to be 
considered independently, possibly taking Kasimier's direction.

xan


From tony.cincotta@n... Thu Jun 02 14:05:54 2005
Received: f


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