Re: If attribute default present, 'use' must be optional

At 2012-03-23 10:53 +0000, Pete Cordell wrote:
>Just curious...
>
>why in XSD section 3.2.3 Constraints on XML 
>Representations of Attribute Declarations, 
>Schema Representation Constraint: Attribute 
>Declaration Representation OK 
>(http://www.w3.org/TR/xmlschema11-1/#sec-src-attdecl) does it say:
>
>    2 If default and use are both present, use 
> must have the ·actual value· optional
>
>Why can't a schema designer choose to have a 
>mandatory attribute with a default value?

What would a default value mean if it never, 
ever, gets used because the instance *always* overrides it?

Would that not be misleading to someone?  Either 
the schema writer or the user or both?

. . . . . . . . Ken


--
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/uoui9h
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/x/
G. Ken Holman                   mailto:gkholman@CraneSoftwrights.com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal

Received on Friday, 23 March 2012 10:58:54 UTC