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

Re: [xmlschema-dev] <none>

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: Mon, 27 Oct 2003 10:12:11 +0000
To: marktt@excite.com
Cc: xmlschema-dev@w3.org
Message-ID: <f5b3cdf2dms.fsf@erasmus.inf.ed.ac.uk>

"Mark Thomson" <marktt@excite.com> writes:

> Suppose a schema <include>s two other schemas. The first one has a global attribute declared as follows:
> <attribute name="AA">
>   <simpleType>
>     <restriction base="xsd:float"/>
>    <simpleType>
> </attribute>
> and the second one has the same attribute, but declared as follows:
> <attribute name="AA" type="xsd:float"/>
> Is this ok? or should it be reported as an error? (i.e., are the
> types equivalent?) (I didn't see anything in the specs that
> disallows empty <restriction> elements).

There's nothing disallowing it.  The REC is not completely clear on
what constitutes an "component identical" to another component, so I'm
afraid schema processors have some license to differ on this one.  The
WG plans to tighten this up in the next version (although I won't
predict which way it will go on this particular example).

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-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 Monday, 27 October 2003 05:12:13 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:03 UTC