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

Re: Megginson and XMLNews

  • From: David Megginson <david@m...>
  • To: "XML Developers' List" <xml-dev@i...>
  • Date: Mon, 12 Apr 1999 18:53:12 -0700 (PDT)

megginson
Walter Underwood writes:

 > I expect to ship our next release pre-configured for NITF,

That's wonderful.

 > but I sure would like to see some common practice beyond <title>.
 > Mostly, our customers would appreciate it, and the people doing
 > searches would get better results.

Actually, I think that you need something a little more robust --
otherwise, we'll end up with a hodge-podge of rules for what element
names people can and cannot use.  I would not want to forbid someone
from using something like this:

  <?xml version="1.0"?>

  <person>
   <title>Dr.</title>
   <firstname>Charles</firstname>
   <lastname>Goldfarb</lastname>
   <desc>Originator of SGML.</desc>
  </person>

Universal names (as in "Namespaces in XML") get you part way there,
because different document types can share semantics of well-known
element types:

  <?xml version="1.0"?>

  <book xmlns:html="http://www.w3.org/Profiles/xhtml1-transitional">
   <front>
    <html:title>This is the book title</html:title>
   </front>
   <body>
    [...]
   </body>
  </book>
   
What's really useful, though, is to develop some kind of inheritance
scheme, so that you can say "this is just like an html:title, except
that it's also a little more specialised".  Architectural forms
provide a very lightweight mechanism for this; XML Schemas will
probably provide another.

Personally, I'd love to see NITF take advantage of namespaces, even to 
a very small extent.  To start, a simple default namespace would be
nice:

  <?xml version="1.0"?>

  <nitf xmlns="http://www.iptc.org/iptc/namespaces/nitf/">
   <head>
    <title>Simple Story</title>
   </head>
   <body>
    <body.head>
     <hedline>
      <hl1>Simple Story</hl1>
     </hedline>
     <byline>
      <bytag>By David Megginson</bytag>
     </byline>
    </body.head>
    <body.content>
     <p>This is a simple story that mentions <cite>Shakespeare in
      Love</cite>.</p>
    </body.content>
   </body>
  </nitf>

This would allow other document types to reuse NITF components in a
well-defined way, and search engines to recognise them wherever
they're used.  Right now, we're not doing this in XMLNews-Story
because we want to remain strictly subset-compatible with NITF, but
we'll certainly encourage the NITF people to consider updating the
spec.

In fact, since NITF borrows heavily from HTML (and also a bit from
HyTime, though that part is not included in the XMLNews-Story subset),
it would be nice to put the HTML stuff in a separate namespaces so
that search engines and other processing software can do something
useful with it even if they do not know NITF itself:

  <?xml version="1.0"?>

  <nitf xmlns="http://www.iptc.org/iptc/namespaces/nitf/"
	xmlns:html="http://www.w3.org/Profiles/xhtml1-transitional">
   <html:head>
    <html:title>Simple Story</html:title>
   </html:head>
   <html:body>
    <body.head>
     <hedline>
      <hl1>Simple Story</hl1>
     </hedline>
     <byline>
      <bytag>By David Megginson</bytag>
     </byline>
    </body.head>
    <body.content>
     <html:p>This is a simple story that mentions <html:cite>Shakespeare in
      Love</html:cite>.</html:p>
    </body.content>
   </html:body>
  </nitf>

This might help a bit with the search engine problem.


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

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/ and on CD-ROM/ISBN 981-02-3594-1
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.