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

"G. Ken Holman" <[email protected]>
Newsgroups gmane.text.xml.schema.devel
Message-ID <[email protected]>
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:[email protected]
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.