- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 15 Jun 2001 14:54:17 +0100
- To: "Ravindra Jain" <ravindra@ltp.soft.net>
- Cc: <xmlschema-dev@w3.org>
"Ravindra Jain" <ravindra@ltp.soft.net> writes:
> Hi All,
>
> According to XML Schema Part 1 : Structures (Section 3.4.2 XML
> Representation of ComplexType Definitions)
> the definition of a complexContent is as follows :
>
> <complexContent
> id = ID
> mixed = boolean
> {any attributes with non-schema namespace . . .}>
> Content: (annotation?, (restriction | extension))
> </complexContent>
>
> <restriction
> base = QName
> id = ID
> {any attributes with non-schema namespace . . .}>
> Content: (annotation?, (group | all | choice | sequence)?, ((attribute |
> attributeGroup)*, anyAttribute?))
> </restriction>
>
> <extension
> base = QName
> id = ID
> {any attributes with non-schema namespace . . .}>
> Content: (annotation?, ((group | all | choice | sequence)?, ((attribute |
> attributeGroup)*, anyAttribute?)))
> </extension>
>
> Here, in the above definition, the content of <extension> and <restriction>
> both looks similar (except one pair of braces in extension's content
> definition)
> Why there is an extra set of brackets in extension ?
> Does it have some special significance ?
Stylesheet artefact, sorry. No significance.
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 Friday, 15 June 2001 09:54:19 UTC