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

Re: words (RE: extensibility in XSchema?)

  • From: John Cowan <cowan@l...>
  • To: XML Dev <xml-dev@i...>
  • Date: Mon, 22 Jun 1998 17:11:51 -0400

xschema recursive element
Peter Murray-Rust wrote:

> Now compare MIME:
>         If I get sent a file of type image/gif I can:
>         - determine that 'image/gif' is a MIME type
>         - see if it is in the central IETF registry. If so I can read the formal
> definition, etc.
>         - *and most important for me* I can associate the MIME type with a program
> through the mailcap file, *even if the MIME type is not registered*.
> 
> This is all I am asking for, but there seems to be no way to do a similar
> thing for an XML element or attribute.

The trouble, IMHO, is not so much that an "elemcap" file couldn't
be created; it's what to put in it.  MIME types describe fairly
large objects with little structure, except for the multipart/*
types, and their structure is just a list of objects with
MIME types, so simple recursion does it all.  When you've got
down to the non-multipart level, you can reasonably run a program
on each resulting MIME object.

In XML documents, though, you can't reasonably run a program on
each element, unless the programs are very lightweight.  That
seems to me to be what DS+L (I can't remember the number of S's)
is all about: associate a Scheme program with every element
according to a hierarchical rule, and then run that program
to interpret the element.

Unfortunately, people seem to have fallen into the "report-generator"
syndrome: the desire to do everything that's possible in a programming
language, using something that's simpler than a (Turing-complete)
programming language.  Hard to do.

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@c...
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

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.