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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]


Hi Elliot,



    In the meantime I asked for more questions. From my point of view the thread
is closed,  but if you want to make any comments you can read the thread below:



Bullard, Claude L (Len) wrote:

>They are inherited rom sloppy terminology used in SGML days.
>
>The term "definition" appears in Document Type Definition
>which should not be confused with Document Type Declaration.
>
>How 'ok' it is really depends on what your readers need to
>know or how precisely they need to communicate.  As long
>as the syntactical form is correct, the declaration will
>work.  If however, they use the term in the wrong circles,
>they may get a raised eyebrow, but most people will accept
>the terminology.   In publications, however, it is better
>to be right and specific given that the credibility of the
>author will be rated accordingly.
>
>You might want to review the XML 1.0 spec at some point.
>Most of us have to and even I had to look that one up
>to be sure, and that tells you it won't make that big
>a difference in most circles.  For example, most people
>think <?xml blah is a processing instruction.  It isn't.
>It is an XML Declaration not because of the syntax but
>because it can only appear once and in a specific place.
>
>len
>
>
>From: mihaiu@mihaiu.name [mailto:mihaiu@mihaiu.name]
>
>On some forums/xml tutorials I saw the term definition used for the exact
>same
>purpose. Are they completely equivalent ? If I write a technical
>documentation
>is it OK to use the term "definition" instead of "declaration" ?
>
>On a wider scale: is the term "definition" used at all in XML ?
>
>
>Thanks,
>Razvan
>
>
>Bullard, Claude L (Len) wrote:
>
>>It is an element type declaration and an attribute list declaration.
>>
>>http://www.w3.org/TR/REC-xml/#elemdecls
>>
>>len
>>
>>-----Original Message-----
>>From: mihaiu@mihaiu.name [mailto:mihaiu@mihaiu.name]
>>Sent: Thursday, February 10, 2005 2:43 PM
>>To: xml-dev@lists.xml.org
>>Subject: [xml-dev] XML jargon: declaration vs. definition
>>
>>
>>
>>Hi,
>>
>>
>>
>>       Consider the following XML element:
>>
>><!ELEMENT value (#PCDATA)>
>><!ATTLIST value year CDATA #IMPLIED>
>>
>>       Is this a declaration or a definition ? In Java/C++ there is a
>
>clear
>
>>distinction between declaration and definition. How about XML ?
>>	I am apologizing for asking such a simple (stupid?!) question but I
>>need to
>>clarify the terminology.
>>
>>
>>Thanks,
>>Razvan
>>
>>
>>
>>-----------------------------------------------------------------
>>The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
>>initiative of OASIS <http://www.oasis-open.org>
>>
>>The list archives are at http://lists.xml.org/archives/xml-dev/
>>
>>To subscribe or unsubscribe from this list use the subscription
>>manager: <http://www.oasis-open.org/mlmanage/index.php>
>>
>>
>>
>
>
>
>






 

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

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