Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Default and Fixed Attribute declarations >Thread Next - XML Schema 1.0 SE Errata RE: Default and Fixed Attribute declarationsTo: "'Mukul Gandhi'" <gandhi.mukul@-----.--->, <lists@----------.---> Date: 10/2/2006 7:54:00 PM > > I did a quick check with XMLSpy 2006. It reports this as a > validation error. So as you say, (a) is the answer. Really, trying out implementations is no way to find out what the spec says. The answer is in Schema Part 1 section 3.5.4: For an attribute information item to be.valid. with respect to an attribute use its .normalized value. must match the canonical lexical representation of the attribute use's {value constraint} value, if it is present and fixed. Given <xs:attribute name="foo" type="xs:string" fixed="bar" />, there is an attribute use with a {value constraint} that is fixed and has the value "bar". The .normalized value. of the attribute information item is "", which does not match. Michael Kay http://www.saxonica.com/ From gandhi.mukul@g... Mon Oct 02 18:13:08 2006 Rece | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
