W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2002

Re: Fixed element value w/ simple type

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 19 Nov 2002 19:23:03 +0000
To: sandygao@ca.ibm.com
Cc: w3c-xml-schema-ig@w3.org, www-xml-schema-comments@w3.org
Message-ID: <f5b7kf9ictk.fsf@erasmus.inf.ed.ac.uk>

sandygao@ca.ibm.com writes:

> Maybe I'm misreading the spec, but it's not clear from the spec what to do
> in this case. Bullet 5.2.2.2 of constraint [1] deals with default element
> value. 5.2.2.2.1 talks about complex type with mixed content, and 5.2.2.2.2
> talks about complex type with simple type content. So there is no rule for
> elements with simple types.
> 
> Maybe 5.2.2.2.2 should be changed to say if the actual type is a simple
> type or if it's a complex type with simple type content?

Yes, I think that's right.

> Another related issue, which I think was raised before, is that 5.2.2.2.2
> talks about the actual value must match the canonical representation of the
> value constraint. Shouldn't it be the actual value must match the value
> constraint value?
> 
> [1] http://www.w3.org/TR/xmlschema-1/#cvc-elt

Yes, there's a pending issue [1] on that one.

ht

[1] http://www.w3.org/2001/05/xmlschema-rec-comments.html#pfifixedValueConstraint
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2002, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Tuesday, 19 November 2002 14:23:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT