Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Changing the type of an attribute [Thread Next] substitutionGroup and finalTo: <xmlschema-dev@--.---> Date: 1/4/2005 9:33:00 AM Hi all, This is schema snippet valid? <xsd:element name="comment" type="xsd:string" = final="restriction"/> <xsd:element name="mycomment" type="xsd:string" = substitutionGroup="comment"/> In another word, does final="restriction" allow the element = substitution group with the same type? In my understanding of the spec, this is invalid, because xsd:string is = a valid "restriction" of xsd:string, which is prevented by = final="restriction" attribute. XSV test thinks this is valid, and the = book "Definitive XML Schema" seems says it is valid too. Thanks, -Neal From george@o... Wed Jan 05 09:24:17 2005 Received: from | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
