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

Default for attribute of type Qname - What PSVI contribution?

From: Alessandro Triglia <sandro@mclink.it>
Date: Wed, 26 Mar 2003 00:28:47 -0500
To: "[Public XML Schema DEV]" <xmlschema-dev@w3.org>
Message-ID: <005701c2f358$94294740$8f01a8c0@Aldebaran>


I have a few questions.

If an attribute of type QName has a default and the attribute is absent
in an instance, what will be exactly the PSVI contribution?

I am referring to:

3.4.5 Complex Type Definition Information Set Contributions

Schema Information Set Contribution: Attribute Default Value

For each attribute use [...], the post-schema-validation infoset has an
attribute information item whose properties are as below added to the
[attributes] of the element information item. 

[local name] 
	The {attribute declaration}'s {name}. 
[namespace name] 
	The {attribute declaration}'s {target namespace}. 
[schema normalized value] 
	The canonical lexical representation of the {value constraint}
[schema default] 
	The canonical lexical representation of the {value constraint}
[validation context] 
	The nearest ancestor element information item with a [schema
information] property.
[validation attempted] 
[schema specified] 

How would the property  [schema normalized value]  be assigned?  What
would be the  "canonical lexical representation"  of the default QName
value, which is only an  "actual value" (namespace name + local part)?
What happens if the namespace name of the QName is not in-scope in this
particular part of the instance infoset?

Alessandro Triglia
OSS Nokalva
Received on Wednesday, 26 March 2003 00:29:48 UTC

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