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>

Hi

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}
value. 
[schema default] 
	The canonical lexical representation of the {value constraint}
value. 
[validation context] 
	The nearest ancestor element information item with a [schema
information] property.
[validity] 
	valid. 
[validation attempted] 
	full.
[schema specified] 
	schema.
============================

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:36 GMT