[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: XML Schema: finalDefault, lists and unions
- From: Martin Gudgin <marting@develop.com>
- To: Jeni Tennison <mail@jenitennison.com>, xml-dev@lists.xml.org
- Date: Fri, 22 Jun 2001 19:06:27 +0100
Jeni, I raised this point on the XML Schema Comments list[1] a while ago. No
reply yet. I'll ping the WG again.
Regards
Martin Gudgin
DevelopMentor
[1]
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001AprJun/0182.
html
----- Original Message -----
From: "Jeni Tennison" <mail@jenitennison.com>
To: <xml-dev@lists.xml.org>
Sent: Friday, June 22, 2001 6:28 PM
Subject: XML Schema: finalDefault, lists and unions
> Hi,
>
> In XML Schema, the default for the final attributes on xs:element,
> xs:complexType and xs:simpleType is given in the finalDefault
> attribute on the xs:schema element.
>
> The finalDefault attribute can take the value '#all' or a list of
> keywords 'restriction' and 'extension'. The xs:element and
> xs:complexType's final attributes take the same values. On the other
> hand, the final attribute on xs:simpleType can hold a list of the
> keywords 'list', 'union' and 'restriction' rather than 'extension' and
> 'restriction'.
>
> The fact that finalDefault *can't* take the values 'list' or 'union'
> means that it's impossible to by default have simple types take a
> final value of 'list' (say), to stop people from deriving lists from
> simple types. You can stop derivation by restriction by default, or
> all derivation by default, but you can't pinpoint either derivation by
> list or union.
>
> Can anyone shed any light on why this is the case?
>
> Just curious,
>
> Jeni
> ---
> Jeni Tennison
> http://www.jenitennison.com/
>
>
> ------------------------------------------------------------------
> The xml-dev list is sponsored by XML.org, an initiative of OASIS
> <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To unsubscribe from this elist send a message with the single word
> "unsubscribe" in the body to: xml-dev-request@lists.xml.org