[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML Schema: finalDefault, lists and 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|