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

Re: Re:Automating Search Interfaces"

  • From: David Megginson <ak117@f...>
  • To: "Matthew Gertner" <matthewg@p...>
  • Date: Fri, 20 Feb 1998 10:35:37 -0500

Re: Re:Automating Search Interfaces"
Matthew Gertner writes:

 > One approach that really appeals to me is based on a two-pronged effort to
 > create standard tags *and* standard DTDs, and relies on the fact that there
 > is really a working mechanism for extending DTDs through inheritance (which
 > I guess is still not entirely the case).
 > 
 > Standard tags would be a bit of a hack, but probably very useful in a
 > pragmatic sense. For example, you might be able to say certain things about
 > a TITLE tag, or a PRICE tag, or whatever, just on the basis of the name,
 > regardless of the actual DTD being used. If these conventions were
 > well-known, this could be of great use when defining a new DTD (i.e. "Let's
 > call the tag PARAGRAPH and not PARA because this is what will be recognized
 > by search engines").

The idea is actually quite sound, but the implementation could be a
little cleaner.  Instead of relying on the element type name (which
may vary for different domains of information), why not have a
standard attribute (such as 'standard-doc') that gives the equivalent
standard name in the architecture.  That way, just as you write

  public class Cost implements Price {
  }

in Java, you can write

  <!ELEMENT cost (#PCDATA)>
  <!ATTLIST cost
    standard-doc CDATA #FIXED "price">

in XML, or even

  <cost standard-doc="price">xxx</foo>

This makes multiple inheritance easy:

  <!ELEMENT cost (#PCDATA)>
  <!ATTLIST cost
    standard-doc CDATA #FIXED "price"
    alt-doc CDATA #FIXED "value">

Now, that `cost' inherits from `price' in the standard-doc
architecture and from `value' in the alt-doc architecture.


All the best,


David

-- 
David Megginson                 ak117@f...
Microstar Software Ltd.         dmeggins@m...
      http://home.sprynet.com/sprynet/dmeggins/

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.