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

RE: Are we losing out because of grammars?

  • From: Leigh Dodds <ldodds@i...>
  • To: Eric van der Vlist <vdv@d...>
  • Date: Fri, 02 Feb 2001 11:58:05 +0000

RE: Are we losing out  because of grammars?


> -----Original Message-----
> From: Eric van der Vlist [mailto:vdv@d...]
> Sent: 02 February 2001 11:18
> Cc: xml-dev@l...
> Subject: Re: Are we losing out because of grammars?
>
>
> Rick Jelliffe wrote:
> >
> > From: James Clark <jjc@j...>
> >
> > >What is the point of this crusade against grammars?
> >
> > Oh, it is no crusade against grammars.
>
> To make it short, isn't the main difference that with Schematron
> everything that is not forbidden is allowed while with the other
> languages, everything that is not allowed is forbidden.

Of course Schematron also offers a great deal of other features which
don't seem to be high priorities in other languages.

While James' comments about efficiencies are well taken, I'd suggest
that while Schematron schemas may be more verbose, they are certainly
a lot more 'user-friendly'.

The ability to associated precise, readable feedback with fine-grained
constraints is a huge bonus from a user perspective. Yes, more work for
the maintainer, but less effort for the user.

I've recently had to pick up a particular chema for a first time, and
have ended up tracking through all sorts of documentation and DTDs
to track down reasons for some validation errors. Even RXP (may favourite
validation sanity checker) didn't produce much in the way of useful
feedback. Sure, I could find the offending element, and I knew it was
wrong, but I didn't know *why*.

A Schematron schema would have been a lot more useful.

I like Ricks 'map' and 'route' analogy. While a list of directions are
useful
for guiding one from A to B, if you take a wrong turn then you're left
to go back to A and start again. If I had a map then you could just
said "here's A and there's B, get on with it" and I'd be able to
navigate my way. (maybe I'm pushing the analogy a bit far, but
I think the distinction has value).

Personally I think there's room for both approaches, and I don't think
we've even begun to discover all the possible uses of rule-based approaches.

Cheers,

L


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.