[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML Schema: finalDefault, lists and unions

  • From: Martin Gudgin <marting@d...>
  • To: Jeni Tennison <mail@j...>, xml-dev@l...
  • Date: Fri, 22 Jun 2001 19:06:27 +0100

lists of unions
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@j...>
To: <xml-dev@l...>
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@l...


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.