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

Re: Must DTDs constrain order?

  • From: Eric van der Vlist <vdv@d...>
  • To: Tim Bray <tbray@t...>
  • Date: Sat, 28 Oct 2000 09:55:46 +0200

Re: Must DTDs constrain order?
Tim Bray wrote:
> 
> At 07:36 PM 27/10/00 -0700, Wayne Steele wrote:
> 
> >I have had to deal with this frequently.
> >Here are several choices I've made at different times:
> 
> Here's another one.  Since you're going to have to write
> some code anyhow to validate against business rules, just
> put the content check in there and don't waste your time
> trying to make DTDs do things that aren't cost-effective.

Yes, this is probably the way to go...

I begin to think that XML vocabularies should take example on XML itself
and that when designing a vocabulary one should start by defining the
infoset (the data model), a canonical form (a very strict syntax) before
defining one (or more if needed) "user XML syntax(es)" and canonization
algorithms with reference implementation(s).

In this case, the canonization process would include elements ordering.

It can also include business algorithm as Tim mentioned.

The canonical form being very strict, the canonical algorithm could also
include namespace filtering and prefix rewriting allowing things like
DTD validation of modular multi-namespace XML documents or generation of
semantic (RDF or XLink) metadata.

(Such a process would also facilitate "namespace migration" as recently
discussed on this list about href vs xlink:href or style vs a potential
css:style.)

Eric

> -Tim

-- 
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------


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.