W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2004

Applying default values of type QName (and NOTATION)

From: Sandy Gao <sandygao@ca.ibm.com>
Date: Wed, 8 Dec 2004 12:38:11 -0500
To: www-xml-schema-comments@w3.org
Message-ID: <OFEBA8471D.A78AA64F-ON85256F64.00609484-85256F64.0060D08D@ca.ibm.com>
When a default/fixed attribute/element value is of type QName/NOTATION, 
how is it applied to the instance? For example: 

<attribute name="att" type="QName" xmlns:p1="my_uri" default="p1:local"/>

If the above attribute doesn't appear in an instance, we should add a new 
attribute. But what would be the (string) value of the added attribute? 
(Note that the prefix "p1" might not be declared in the instance, or it's 
possible to be bound to a different namespace uri.) 

Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
Received on Wednesday, 8 December 2004 17:38:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:02 UTC