- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 08 May 2001 08:41:09 +0100
- To: Eddie Robertsson <eddie@allette.com.au>
- Cc: XSD <xmlschema-dev@w3.org>
Eddie Robertsson <eddie@allette.com.au> writes:
> In the section for restriction in the Primer (4.4) it reads (last
> sentence before the example):
>
> "Notice that types derived by restriction must repeat all the components
> of the base type definition that are to be included in the derived
> type:"
>
> However, I don't believe this is true for attributes.
You're right. The sentence above needs to be understood as
"components _of the content model_".
> Isn't it true that even if you omit the attribute component in the
> restricted type the attribute is still copied from the base type
> anyway?
Yes.
> If this is not the case I don't see the use of 'use=restricted' for
> attributes.
That's 'use="prohibited"', but yes, that's what it's for.
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
W3C Fellow 1999--2001, 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/
Received on Tuesday, 8 May 2001 03:41:27 UTC