[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:42:58 +0530
Message-ID: <7870f82e0610021112s648431dbpba87e90d976289fe@mail.gmail.com>
To: "Michael Kay" <mike@saxonica.com>
Cc: lists@jeffrafter.com, xmlschema-dev@w3c.org
Re: Default and Fixed Attribute declarations

Sorry I didn't mean, if XMLSpy reported something, it will always be correct.

I meant to say ..
(a) could be the answer.

I wish to add that I believe, XMLSpy is a nice product.

On 10/2/06, Michael Kay <mike@saxonica.com> wrote:
> >
> > I did a quick check with XMLSpy 2006. It reports this as a
> > validation error. So as you say, (a) is the answer.
>
>
> Really, trying out implementations is no way to find out what the spec says.
> The answer is in Schema Part 1 section 3.5.4:
>
> For an attribute information item to be.valid. with respect to an attribute
> use its .normalized value. must match the canonical lexical representation
> of the attribute use's {value constraint} value, if it is present and fixed.
>
> Given <xs:attribute name="foo" type="xs:string" fixed="bar" />, there is an
> attribute use with a {value constraint} that is fixed and has the value
> "bar". The .normalized value. of the attribute information item is "", which
> does not match.
>
> Michael Kay
> http://www.saxonica.com/


-- 
Regards,
Mukul Gandhi
Received on Monday, 2 October 2006 18:13:08 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.