OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] XML jargon: declaration vs. definition

[ Lists Home | Date Index | Thread Index ]

>         Consider the following XML element:
> <!ELEMENT value (#PCDATA)>
> <!ATTLIST value year CDATA #IMPLIED>
>         Is this a declaration or a definition ? 

It is not an XML element, it is not a declaration, and it is not a

It is an element type declaration followed by an attribute-list declaration.
The attribute-list declaration in this case consists of a single attribute

I don't think that the XML specification makes any subtle distinction
between the words "declaration" and "definition", but I may be wrong.
Internally however its terminology is consistent.

Michael Kay


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS