[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Content v. attribute

  • From: "Vrijland, Jacco TRC-OGRS/2" <Jacco.J.Vrijland@o...>
  • To: "'xml-dev@i...'" <xml-dev@i...>
  • Date: 26 Oct 1998 09:54:19 +0100

jacco vrijland
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@o...


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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.