W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2004

Default values handling

From: Antoine Mensch <antoine.mensch@xquarkgroup.com>
Date: Thu, 12 Feb 2004 10:10:24 +0100
To: "Public-Qt-Comments@W3. Org" <public-qt-comments@w3.org>
Message-ID: <KBELJHFJHGPOHFENKHJCKEJFCCAA.antoine.mensch@xquarkgroup.com>

The DM document specifies that elements and attributes use the [schema
normalized value] when constructing nodes from the PSVI. This means that
default values specified in the schema are used to synthetized attributes
that are not present in the original infoset. This is clearly needed when
performing queries on the data model. However, the DM does not seem to keep
track of the [schema specified] property, which means that attributes that
are absent in the original infoset will be copied and serialized as if they
were present. Is this a proper behavior when dealing with documents that
rely heavily on schema-specified default values (e.g. an XML Schema
document)? When using a possible "preserve" validation mode previously
mentioned by Don Chamberlin, copying and serializing default values is in
fact redundant, because the information is already present in the original
type (which is preserved).

Best regards,

Antoine Mensch
Received on Thursday, 12 February 2004 04:04:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:05 GMT