[Home] [By Thread] [By Date] [Recent Entries]


> 
>         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
definition.

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

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
http://www.saxonica.com/


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member