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


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: XML-Data: advantages over DTD syntax? (and some wishes)

[ Lists Home | Date Index | Thread Index ]
  • From: Paul Prescod <papresco@technologist.com>
  • To: xml-dev@ic.ac.uk
  • Date: Fri, 03 Oct 1997 22:09:34 -0400

Sean Mc Grath wrote:
> Yes it reduces the number of parsers "a good thing (tm)" but isn't the big
> win of the XML-Data approach is the extra miles per gallon that
> accrue to all the XML application software?

To all of the XML application software that cannot parse DTDs. It still
comes back to saving software developers from processing two formats.
> All of a sudden it becomes possible to typeset documentation
> of schemata by processing them with straight XML typesetting tools.

You can do this with SGML. Check out Earl Hood's software. Check out
Near&Far. Yes, this is *easier* with XML-Data, because you only need one
parser instead of two. Nobody has ever disputed that.

> It becomes possible to load schemata into XML databases as first class
> citizens. XML greppers can grep 'em. XML web harversters can harvest
> 'em.

You can do this with SGML documents. SGML DTDs are represented in a
database by a specialized form of grove created by the parser and grove
builer. XML-DATA merely adds a level of processing. The XML-Parser must
build an XML grove which is then transformed into the specialized grove.
> It becomes possible to contemplate a schema derivation mechanism
> based on using XLL to "cherry-pick" from a collection of existing schemata.

There are proposals for SGML schema derivations. The question is only
whether they use XLL or not. This is fundamentally the same question as
whether XML should use instance syntax.

> It becomes possible to contemplate using an XML to XML transformation
> system to transform schemata and then auto-generate the instance
> transformation.

I don't know what you mean here, but I confidently predict it can be
done with SGML DTDs too. If you use a decent parser like SP, the grove
that is built provides access to all of the information in the DTD, in a
grove that is optimized for DTD navigation (and thus transformation).

> For me the big win is the simplification it could bring to base XML
> application development and the sheer intellectual appeal of it.
> It is a very computer science-ish, Lisp-ish, Dame Ada Lovelace-type,
> KISS way of looking at things. A grand unifying theory of a sort.

I share this interest in unifying concepts. I've done instance syntaxes
for DTDs myself in the past. I have no problem with the concept it's an
obvious one...I just don't think it needs to be, nor should be, the
*standard* way for creating DTDs. Users should have the option of the
optimized syntax.

> The XML world would then have the freedom to create
> new and better syntaxes for schemata safe in the knowledge that
> todays tools that can process XML will process these new syntactic
> sugars via transformation to base XML - the mother of all syntaxes.

Sean, we have always had this freedom. Dozens of different projects have
taken advantage of it in the past. You are re-describing the current
situation in SGML. We can experiment with instance syntax and convert to
DTD syntax for compatibility. Making such a converter is about a day's

 Paul Presscod

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