W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2006

Default and Fixed Attribute declarations

From: Jeff Rafter <lists@jeffrafter.com>
Date: Mon, 02 Oct 2006 09:10:14 -0700
Message-ID: <452139E6.4020608@jeffrafter.com>
To: xmlschema-dev@w3c.org

Hi All,

I am just looking for a clarification. Given:

  <xs:element name="baz">
      <xs:attribute name="foo" type="xs:string" fixed="bar" />

What should happen when the validator encounters:

<baz foo=""/>

(a) Validity Error

(b) PSVI contains the foo attribute with the value "bar".

I am fairly positive it is (a)... but I have a note to myself saying the 

XSV, MXSML, .NET 1.1, .NET 2.0, Xerces2-J, Oracle agree

Xerces2-C++, XsdValid do not.

Jeff Rafter
Received on Monday, 2 October 2006 16:10:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:37 UTC