Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Default and Fixed Attribute declarations

From: "Michael Kay" <mike@--------.--->
To: "'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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent