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

Re: Ambiguity in XML spec

  • From: "David Brownell" <david-b@p...>
  • To: "Eric Bohlman" <ebohlman@n...>, "Michael Champion" <Mike.Champion@s...>
  • Date: Fri, 19 May 2000 12:23:42 +0200

coding to resolve date ambiguity
> > > Actually I think the XML spec would have been substantially improved,
> > > in the technical sense, were it to have been directly validated by an
> > > implementation -- using only the standardized productions.
> >
> > I strongly agree, and hope this is addressed in the corrected version of
XML
> > 1.0 if it ever comes out, or in XML 1.1 / 2.0.  A colleague implementing
an
> > XML parser "from scratch" --  that is, without previous exposure to all
the
> > folklore that one picks up from SGML, XML-DEV, deconstructing other
people's
> > code, etc. -- stumbled over all sorts of little problems with the
> > standardized productions.

Symptomatic of the problem is the comment I hear not all that
infrequently:  "XML is really SGML, so you just use the SGML
spec to resolve any issues."  Ah, sorry no -- there's no normative
reference to SGML, and there should be no need to know SGML.


> I have to at least partially disagree.  Many practical, widely used
> languages cannot be specified *entirely* by EBNF productions and thus
> the formal definition of their syntax includes prose in the language
> specification.  For example, a context-free grammar cannot specify that
> all identifiers in a programming language be declared before they're used,
> or that a function must be called with the exact number of parameters
> specfied in its declaration (Aho & Ullman, p.179).  Thus processors for
> more-than-toy languages generally enforce such syntactic constraints via
> "ad-hoc" code rather than through their parsing tables, and only the prose
> in the spec can inform the processor's author how to write that code.

... which is beside the point of the problems I called attention to.

Those sorts of constraints are often viewed as semantic constraints,
and as we ll know XML is syntax not semantics.

- Dave



***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.