W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2012

If attribute default present, 'use' must be optional

From: Pete Cordell <petexmldev@codalogic.com>
Date: Fri, 23 Mar 2012 10:53:17 -0000
Message-ID: <177409C871734552AAAFEA93DD8D5D5E@codalogic>
To: <xmlschema-dev@w3.org>
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· 

Why can't a schema designer choose to have a mandatory attribute with a 
default value?


Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using C++ XML
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info
Received on Friday, 23 March 2012 10:51:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:20 UTC