[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Default and Fixed Attribute declarations

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Mon, 2 Oct 2006 23:12:09 +0530
Message-ID: <7870f82e0610021042q3754e3e6oced9dccb7699413@mail.gmail.com>
To: lists@jeffrafter.com
Cc: xmlschema-dev@w3c.org
Re: Default and Fixed Attribute declarations

I did a quick check with XMLSpy 2006. It reports this as a validation
error. So as you say, (a) is the answer.

On 10/2/06, Jeff Rafter <lists@jeffrafter.com> wrote:
>
> Hi All,
>
> I am just looking for a clarification. Given:
>
>  <xs:element name="baz">
>    <xs:complexType>
>      <xs:attribute name="foo" type="xs:string" fixed="bar" />
>    </xs:complexType>
>  </xs:element>
>
>
> 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
> opposite.
>
> XSV, MXSML, .NET 1.1, .NET 2.0, Xerces2-J, Oracle agree
>
> Xerces2-C++, XsdValid do not.
>
>
> Thanks,
> Jeff Rafter


-- 
Regards,
Mukul Gandhi
Received on Monday, 2 October 2006 17:42:16 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.