[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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! 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
|