[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XML jargon: declaration vs. definition
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@m... [mailto:mihaiu@m...] > >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@m... [mailto:mihaiu@m...] >>Sent: Thursday, February 10, 2005 2:43 PM >>To: xml-dev@l... >>Subject: 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> >> >> >> > > > >
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|