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

Re: Unnecessary well-formedness constraint

  • From: Rob Lugt <roblugt@b...>
  • To: Elliotte Rusty Harold <elharo@m...>, xml-dev <xml-dev@x...>
  • Date: Fri, 13 Oct 2000 09:35:27 +0100

Re: Unnecessary well-formedness constraint
I agree, %Fred; has no special meaning outside of the DTD and therefore
the constraint is misleading.

On a related point I would like to question why 'PEReference' appears in the
grammar at all.  By including it in a few odd places it gives the impression
that these few places are the only places where PE references are allowed.
They are, of course, permitted almost anywhere in the DTD (apart from the
handful of exclusions described in XML 1.0, 2.8).

This point certainly caught me out when I first started looking at the XML
grammar.

Regards
Rob Lugt
ElCel Technology

----- Original Message -----
From: "Elliotte Rusty Harold" <elharo@m...>
To: "xml-dev" <xml-dev@x...>
Sent: Thursday, October 12, 2000 8:37 PM
Subject: Unnecessary well-formedness constraint


> Section 4-1 of the XML 1.0 second edition spec states:
>
>
> Well-Formedness Constraint: In DTD
> Parameter-entity references may only appear in the DTD.
>
>
> The Annotated XML spec notes that:
>
> This constraint is not actually wrong, but it is rather misleading.
> Suppose I have a parameter entity named Fred, then if the string %Fred;
> appears somewhere in the document, outside of the DTD, that's not an
> error as this suggests; it's just the string %Fred;.
>
> So my question is why is this constraint here at all? What is its
> effect? If we removed it form the spec (say in the third edition) would
> this in any way change which document are considered to be well-formed
> or valid? Would removing it give parsers any leeway they don't have now?
> Right now this seems like an unnecessary statement to me.
>
> --
> +-----------------------+------------------------+-------------------+
> | Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
> +-----------------------+------------------------+-------------------+
> |               Java I/O (O'Reilly & Associates, 1999)               |
> |            http://metalab.unc.edu/javafaq/books/javaio/            |
> |   http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/   |
> +----------------------------------+---------------------------------+
> |  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
> |  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
> +----------------------------------+---------------------------------+
>
>


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.