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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Content v. attribute

[ Lists Home | Date Index | Thread Index ]
  • From: "Vrijland, Jacco TRC-OGRS/2" <Jacco.J.Vrijland@opc.shell.com>
  • To: "'xml-dev@ic.ac.uk'" <xml-dev@ic.ac.uk>
  • Date: 26 Oct 1998 09:54:19 +0100

Hello,

I am working on an XML-based data formatting standard and I've got the
following problem.

Inside the top element of the document I wish to declare some metadata
on the other elements. So far, I've come up with this structure:
<METADATA
     TITLE="Title of the data"
     AUTHOR="J.J. Vrijland"
     DATE="26 October 1998">
</METADATA>

Now, the problem is the following. In this previous structure I have not
yet incorporated a general description of the data (possibly quite a
long string). At the moment I can think of two options:
1. include this as another attribute inside the METADATA element
2. put the description as content between the start- and endtag.
The first would provide me with an easy mechanism to check whether it
has been provided or not, the second seems more natural. Using the first
option is more consistent, though, I can think of no reason why the
description should be treated differently from the other attributes.

Maybe you can provide me with some reasons why one of the two would be
preferable over the other. Or with references as to where I can find out
myself.

I have only started studying XML last week, I have been following this
mailinglist since then, I have found lots of references to interesting
documents, but nothing to answer my question yet. However, if it would
be inappropriate to ask this question here, I apologise.

Thanks in advance,
Regards,


>Jacco Vrijland
>Shell Research and Technology Centre, Thornton (TRC-OGRS/2)
>++44(0)151 373 5106
>e-mail: Jacco.J.Vrijland@opc.Shell.com


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

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

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