|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Ambiguity in XML spec
> > > 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








