Re: Fixed element value w/ simple type

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 UTC